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