aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr32041.c
blob: 60837b204366910eee91e5d07b3d74e12509e6d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR c/32041 */
/* { dg-do compile } */

struct S
{
  int c;
  struct { float f; } sa[2];
};

char a[__builtin_offsetof (struct S, sa->f)
       == __builtin_offsetof (struct S, sa[0].f) ? 1 : -1];