aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr110491.c
blob: 00b3bdfc122e1e2804496e949adb41eabfa71925 (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
25
26
27
28
29
/* { dg-do run } */

int a, c, d, e;
short b;
void f(int *g) { c &= *g; }
void h(void);
void i() {
  a = 1;
  h();
  f(&a);
}
void h() {
  int *j = &c;
  *j = 5;
k:
  for (; 4 + b <= 0;)
    ;
  for (; d;) {
    c = e == 0;
    goto k;
  }
}
int main()
{
  i();
  if (c != 1)
    __builtin_abort ();
  return 0;
}