diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/i386/pr84742-1.c')
-rw-r--r-- | gcc/testsuite/gcc.target/i386/pr84742-1.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/i386/pr84742-1.c b/gcc/testsuite/gcc.target/i386/pr84742-1.c new file mode 100644 index 0000000..07b822f --- /dev/null +++ b/gcc/testsuite/gcc.target/i386/pr84742-1.c @@ -0,0 +1,10 @@ +/* PR inline-asm/84742 */ +/* { dg-do compile } */ +/* { dg-options "-O2" } */ + +void +foo () +{ + char b = 1; + asm volatile ("" : "+T,Y" (b)); /* { dg-error "impossible constraint in 'asm'" } */ +} |