source: CIVL/examples/pthread/errorTest/structInitializationTest.cvl@ e2877ba

1.23 2.0 main test-branch
Last change on this file since e2877ba was c27a6e7, checked in by Stephen Siegel <siegel@…>, 11 years ago

Fixed example with compound initializer.

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@1944 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 145 bytes
Line 
1typedef struct{
2 int a;
3 int c;
4}s2;
5
6typedef struct{
7 int b;
8 s2 inside;
9}s1;
10
11int main(){
12 s1 test;
13 test = (s1){1,{1,3}};
14 return 0;
15}
Note: See TracBrowser for help on using the repository browser.