aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr103440.c
blob: b97f45cd3ed6bf2183c98b192a640c57f5d09372 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* { dg-do run } */
/* { dg-options "-Os" } */
/* { dg-timeout 10 } */

int a, b, c, d, e;
int main() {
  int f = 2, g = 1, h = -3;
L1:
  c = b ^ 1;
  if (!f)
    goto L3;
  if (d)
    g = e;
  f = h;
  if (!c)
    goto L1;
L2:
  if (g)
    a = 0;
L3:
  if (d == g)
    goto L2;
  return 0;
}