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

struct S
{
  int a;
  struct T { unsigned c : 10; } b;
} s;

void
bar (short x, short y, int **p)
{
  if ((x && y) + **p)
    while (1);
}

void
foo (int **p)
{
  bar (s.a, s.b.c, p);
}