1 struct A 2 { 3 int p; 4 }; 5 6 struct B 7 { 8 struct A n; 9 struct A m; 10 int x; 11 int y; 12 int z; 13 }; 14 15 extern int g1, g2; 16 foo(struct B * b)17static void __attribute__((noinline)) foo (struct B *b) 18 { 19 int t; 20 21 t = b->n.p; 22 g1 = t; 23 b->n.p = t+1; 24 g2 = b->m.p; 25 26 b->m = b->n; 27 } 28 bar(struct B * b)29void bar (struct B *b) 30 { 31 foo (b); 32 } 33