aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr96491.c
blob: 784559f4754ec0ef08cccbccf287359df2ca3b15 (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 compile }  */

int rj;

void __attribute__ ((returns_twice))
da (void)
{
  rj = 1;
}

void
c5 (void)
{
  for (;;)
    ++rj;
}

void
ls (int kz)
{
  if (kz == 0)
    {
      rj = 0;
      c5 ();
    }

  da ();
  c5 ();
}