source:
CIVL/mods/dev.civl.abc/examples/tagGood1.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 234 bytes | |
| Line | |
|---|---|
| 1 | // three different entities, all with same tag but in different scopes, |
| 2 | // so OK |
| 3 | #include<stdio.h> |
| 4 | |
| 5 | struct s {int f;}; |
| 6 | |
| 7 | int main() { |
| 8 | enum s {A,B,C}; |
| 9 | { |
| 10 | struct s {int g;} x; |
| 11 | x.g=9; |
| 12 | printf("%d\n", x.g); |
| 13 | } |
| 14 | return 0; |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
