0161-struct.c (138B)
1 struct S { int a; int b; }; 2 struct S s = (struct S){1, 2}; 3 4 int 5 main() 6 { 7 if(s.a != 1) 8 return 1; 9 if(s.b != 2) 10 return 2; 11 return 0; 12 }
sccsimple C compiler | |
git clone git://git.2f30.org/scc | |
Log | Files | Refs | README | LICENSE |