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

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 *-*-* } 9 } */