aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr107505.c
blob: 01270eac91ccfd7dec9303d8da21c0a87798833d (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
/* { dg-do compile } */
/* { dg-options "-O2 -fno-guess-branch-probability" } */

int n;

void
bar (void);

__attribute__ ((noinline, returns_twice)) int
zero (void)
{
  return 0;
}

void
foo (void)
{
  int a = zero ();

  for (n = 0; n < 2; ++n)
    {
    }

  if (a)
    bar ();
}