summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr51106-2.c
blob: e69bf1b01ab63889a1f2e9490d6f136d55c04cb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* PR target/51106 */
/* { dg-do "compile" } */
/* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */

int
bar (int x)
{
  asm goto ("" : : "i" (x) : : lab); /* { dg-error "impossible constraint" } */
  __builtin_unreachable ();
lab:
  return 0;
}

/* { dg-warning "probably doesn.t match constraints" "" { target *-*-* } 8 } */