aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr117979.c
blob: 646cd70776b61126e168722f7a6d6bc507888de6 (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 } */

int a, b;
void foo (void);
int __attribute__((returns_twice)) bar (int);

int __attribute__((const))
baz (int f)
{
  if (f)
    {
      l:;
      for (f = 0; f < 6; ++f)
        if (bar (b))
          goto l;
      for (;; a--)
        ;
    }
  foo ();
  return 0;
}