1 /* PR middle-end/28683 */ 2 3 extern void foo (int *); 4 5 struct A 6 { 7 int f; 8 }; 9 10 struct A * test(struct A * r)11 test (struct A *r) 12 { 13 int *f = &r->f; 14 static int i = 0; 15 if (!i && !((void *) f == (void *) r)) 16 foo (&i); 17 return r; 18 } 19