Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / compndlit-1.c
blob99ec691b23b82db90ce72e264ac6b9b19270197d
1 /* The bit-field below would have a problem if __INT_MAX__ is too
2 small. */
3 void abort (void);
4 void exit (int);
6 #if __INT_MAX__ < 2147483647
7 int
8 main (void)
10 exit (0);
12 #else
13 struct S
15 int a:3;
16 unsigned b:1, c:28;
19 struct S x = {1, 1, 1};
21 int
22 main (void)
24 x = (struct S) {b:0, a:0, c:({ struct S o = x; o.a == 1 ? 10 : 20;})};
25 if (x.c != 10)
26 abort ();
27 exit (0);
29 #endif