aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/pr61583.c
blob: 8424293c17654fc71196a06af2334506a1868567 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-O2 -fcompare-debug" } */

void
f1 (int n, int b)
{
  extern void f2 (int);
  int j;

  if (b)
    n = 1;

  if (n < 1)
    __builtin_unreachable ();

  for (j = 0; j < n; j++)
    f2 (j);
}