summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr41345.c
blob: 4b146c0c202006627045ce60acfc51d3f0aaf30d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR bootstrap/41345 */
/* { dg-do compile } */
/* { dg-options "-O2 -g -fcompare-debug" } */

void
foo (int *x)
{
  int a;
  for (a = 0; a < 2; a++)
    if (x[a])
      goto lab;
  __builtin_unreachable ();
lab:;
}