modernc.org/ccgo/v3@v3.16.14/lib/testdata/gcc-9.1.0/gcc/testsuite/gcc.c-torture/compile/pr44946.c (about) 1 struct A 2 { 3 int i; 4 long l; 5 }; 6 7 struct B 8 { 9 int i; 10 }; 11 12 struct C 13 { 14 int i; 15 struct B b; 16 }; 17 18 struct B foo (struct A a) 19 { 20 struct C *c = (struct C *) &a; 21 return c->b; 22 } 23 void bar (struct A a, struct B b) 24 { 25 struct C *c = (struct C *) &a; 26 c->b = b; 27 }