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

struct T { char a : 8; char b : 1; };
struct S { char x; struct T t[1]; };

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