1 /* $NetBSD: d_c99_anon_struct.c,v 1.4 2021/07/10 10:56:31 rillig Exp $ */ 2 # 3 "d_c99_anon_struct.c" 3 4 /* Anonymous struct test */ 5 6 typedef int type; 7 8 struct point { 9 int x; 10 int y; 11 }; 12 13 struct rect { 14 struct { 15 struct point top_left; 16 struct point bottom_right; 17 }; 18 type z; 19 }; 20 21 22 int main(void)23main(void) 24 { 25 struct rect r; 26 r.top_left.x = 1; 27 return 0; 28 } 29