aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr111807.c
blob: 09fbdcfb667a2a60e1784a5c0237d05e61ced9f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */

static struct A {
  int x : 4;
} a;
static int b;
int main()
{
  struct A t[2];
  t[0] = b ? t[1] : a;
  return (b ? t[1].x : 0) && 1;
}