diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/tm/inline-asm.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/tm/inline-asm.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/tm/inline-asm.c b/gcc-4.9/gcc/testsuite/c-c++-common/tm/inline-asm.c new file mode 100644 index 000000000..eefd347dc --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/tm/inline-asm.c @@ -0,0 +1,17 @@ +/* { dg-do compile } */ +/* { dg-options "-fgnu-tm -O1" } */ + +static inline void +inline_death () +{ + __asm__ (""); /* { dg-error "asm not allowed" } */ +} + +void +tranfunction () +{ + __transaction_atomic + { + inline_death (); + } +} |