1 /* PR middle-end/41935 */
3 /* { dg-options "-O2" } */
5 extern void abort (void);
6 struct A { int a; int b[10]; };
11 return __builtin_offsetof (struct A, b[p->a]);
19 if (foo (&a) != 7 * sizeof (int) + __builtin_offsetof (struct A, b))
22 if (foo (&a) != 2 * sizeof (int) + __builtin_offsetof (struct A, b))