aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr108596.c
blob: 4de6c49d7cedc8ef2274caa4db11a99de51f8768 (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
/* PR rtl-optimization/108596 */

__attribute__((__cold__)) void foo (void);
void bar (void);

void
baz (void)
{
  asm goto ("" : : : : l1, l0);
  goto l0;
l1:
  bar ();
l0:
  foo ();
}

void
qux (void)
{
  asm goto ("" : : : : l1, l0);
  __builtin_unreachable ();
l1:
  bar ();
l0:
  foo ();
}