aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/pr107300.c
blob: 836908ee9dd8775d400b1a27898f38a665bd6971 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* PR ipa/107300 */
/* { dg-do compile } */
/* { dg-options "-O2 -fipa-cp-clone -funreachable-traps -fno-inline" } */

void
bar (int x, int y)
{
  if (x)
    __builtin_unreachable ();

  if (y)
    __builtin_abort ();
}

void
foo (void)
{
  bar (0, 0);
}