053-init-struct-pos.c (392B)
1 // tests/cc-parse/53-init-struct-pos.c — global struct positional init. §E.5. 2 // 3 // Struct member access (.a/.b) is currently stubbed to offset 0 in 4 // parse-postfix-rest (Agent 2's §D). To stay inside the working surface, 5 // we treat &s as int* and read the first field by deref. 6 struct S { int a; int b; }; 7 struct S s = {3, 4}; 8 int main(void) { 9 int *p = (int *)&s; 10 return *p; 11 }