aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c
blob: 00ae0c8b99fbab79ef6be45aabdef8c10601374f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* PR tree-optimizations/52891 */

#if __SIZEOF_INT__ > 2
struct __attribute__((packed)) S { unsigned s : 22; };
#else
struct __attribute__((packed)) S { unsigned s : 12; };
#endif
struct __attribute__((packed)) T { struct S t; } c;
int a, b, d;

void
foo (void)
{
  if (1 ? (!c.t.s & (d < 0)) < a : 0)
    b = 0;
}