summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/torture/pr51106-1.c
blob: 10b3b682b98b0c0b2920a98ff386b865f9ad5665 (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
foo (int x)
{
  asm goto ("" : : "i" (x) : : lab); /* { dg-error "impossible constraint" } */
  return 1;
lab:
  return 0;
}

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