gcc/testsuite/gcc.dg/pr90082.c
raw| 1 | /* PR rtl-optimization/90082 */ |
| 2 | /* { dg-do compile } */ |
| 3 | /* { dg-require-effective-target nonlocal_goto } */ |
| 4 | /* { dg-require-effective-target label_values } */ |
| 5 | /* { dg-options "-O1 -fnon-call-exceptions -ftrapv" } */ |
| 6 | |
| 7 | void *buf[5]; |
| 8 | |
| 9 | void |
| 10 | foo (int a) |
| 11 | { |
| 12 | if (__builtin_setjmp (buf) == 0) |
| 13 | __asm__ ("" : : "n" (a * 2)); /* { dg-error "impossible constraint in 'asm'" } */ |
| 14 | /* { dg-warning "'asm' operand 0 probably does not match constraints" "" { target *-*-* } .-1 } */ |
| 15 | } |