source:
CIVL/examples/pthread/errorTest/structInitializationTest.cvl@
d1bb96b
| Last change on this file since d1bb96b was d1bb96b, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 141 bytes | |
| Rev | Line | |
|---|---|---|
| [d1bb96b] | 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 = {1,{1,3}}; | |
| 14 | return 0; | |
| 15 | } |
Note:
See TracBrowser
for help on using the repository browser.
