summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr42234.c
blob: 81bec9db8c521c5fa628ec229dfdbd24be569b10 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-options "-g" } */

void
foo (int x)
{
  struct S { int s; } d = { 1 };
  unsigned int e = 1;
  if (x)
    e = x && d.s;
  else
    for (e = 0; e <= 3; e--)
      ;
  e++;
}