summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr52891-2.c
blob: d9fcbd6dd9daef67b599d387efc80e27413482dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* PR tree-optimizations/52891 */

struct __attribute__((packed)) S { unsigned s : 22; };
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;
}