]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/tm/inline-asm.c
Merge from transactional-memory branch.
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / tm / inline-asm.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O1" } */
3
4 static inline void
5 inline_death ()
6 {
7 __asm__ (""); /* { dg-error "asm not allowed" } */
8 }
9
10 void
11 tranfunction ()
12 {
13 __transaction_atomic
14 {
15 inline_death ();
16 }
17 }