source:
CIVL/mods/dev.civl.com/examples/pthread/errorTest/structInitializationTest.cvl@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 145 bytes | |
| Line | |
|---|---|
| 1 | typedef struct{ |
| 2 | int a; |
| 3 | int c; |
| 4 | }s2; |
| 5 | |
| 6 | typedef struct{ |
| 7 | int b; |
| 8 | s2 inside; |
| 9 | }s1; |
| 10 | |
| 11 | int main(){ |
| 12 | s1 test; |
| 13 | test = (s1){1,{1,3}}; |
| 14 | return 0; |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
