summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr38428.c
blob: aa32fc149f4c9868faaef74f98e78a3beedb6d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* PR middle-end/38428 */

struct S
{
  volatile struct
  {
    unsigned int t : 1;
  } s;
};

int
foo (struct S *x)
{
  int ret;
  if (x->s.t)
    ret = 0;
  else
    ret = 10;
  return ret;
}