aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/torture/pr30313.c
blob: aefeb7866f91bd6d367531673dbf1582bb2326b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* { dg-do compile } */

static inline void bar(){}

struct S
{
#if __INT_MAX__ == 32767
  signed int i: 16;
#elif __INT_MAX__ == 2147483647
  signed int i: 32;
#elif __INT_MAX__ == 9223372036854775807
  signed int i: 64;
#else
#error Please add support for your target here
#endif
};

int main()
{
  struct S x = {32};
  sizeof(x.i+0);
  return 0;
}