diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2003-11-29 18:54:43 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2003-11-29 18:54:43 +0000 |
commit | 9c8586819806fba3b8acd448a68424aa41d832c8 (patch) | |
tree | 854060a2992c75a90b555b47958be9040f4c5d60 /gcc/testsuite/gcc.dg/tls/asm-1.c | |
parent | 2d25605a546af33df11715eff5cc16393c0b2257 (diff) | |
download | gcc-9c8586819806fba3b8acd448a68424aa41d832c8.zip gcc-9c8586819806fba3b8acd448a68424aa41d832c8.tar.gz gcc-9c8586819806fba3b8acd448a68424aa41d832c8.tar.bz2 |
stmt.c (expand_asm_operands): Check whether force_const_mem succeeded.
* stmt.c (expand_asm_operands): Check whether force_const_mem
succeeded.
testsuite/
* gcc.dg/tls/asm-1.C: New test.
From-SVN: r74035
Diffstat (limited to 'gcc/testsuite/gcc.dg/tls/asm-1.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/tls/asm-1.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/tls/asm-1.c b/gcc/testsuite/gcc.dg/tls/asm-1.c new file mode 100644 index 0000000..68c49f6 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tls/asm-1.c @@ -0,0 +1,7 @@ +/* { dg-options "-Werror" } */ +__thread int i; + +int foo () +{ + asm volatile ("" :: "m" (&i)); /* { dg-error "lvalue" } */ +} |