]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr90082.c
bb8293fb63370f2621c4a9341841346a769ab792
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr90082.c
1 /* PR rtl-optimization/90082 */
2 /* { dg-do compile } */
3 /* { dg-options "-O1 -fnon-call-exceptions -ftrapv" } */
4
5 void *buf[5];
6
7 void
8 foo (int a)
9 {
10 if (__builtin_setjmp (buf) == 0)
11 __asm__ ("" : : "n" (a * 2)); /* { dg-error "impossible constraint in 'asm'" } */
12 /* { dg-warning "asm operand 0 probably doesn't match constraints" "" { target *-*-* } .-1 } */
13 }