aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.c-torture/compile/pr58970-1.c
blob: 45aad2b2e65428f8b23ec48d3344a5bacab32421 (plain)
1
2
3
4
5
6
7
8
9
10
11
/* PR middle-end/58970 */

struct T { int b : 1; };
struct S { struct T t[1]; };

void
foo (int x, struct S *s)
{
  if (x == -1)
    s->t[x].b = 0;
}