aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr87117-1.c
blob: 06d700871be90e6915e7f47a43606c62155c342a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
/* { dg-options "-O2 -fno-inline -fno-tree-dce" } */

int a, b, c;
long *d;
void fn1()
{
  for (; 0 < a;)
    a++;
}
void fn3()
{
  for (; c; c++)
    d[c] = 0;
}
void fn2()
{
  if (b)
    fn3();
  fn1();
}