diff options
Diffstat (limited to 'gcc-4.9/gcc/testsuite/c-c++-common/tm/abort-3.c')
-rw-r--r-- | gcc-4.9/gcc/testsuite/c-c++-common/tm/abort-3.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/c-c++-common/tm/abort-3.c b/gcc-4.9/gcc/testsuite/c-c++-common/tm/abort-3.c new file mode 100644 index 000000000..f2cf5b5dc --- /dev/null +++ b/gcc-4.9/gcc/testsuite/c-c++-common/tm/abort-3.c @@ -0,0 +1,8 @@ +/* { dg-do compile } */ + +void f(void) +{ + __transaction_atomic { /* { dg-error "__transaction_atomic. without trans" } */ + __transaction_cancel; /* { dg-error "_cancel. without trans" } */ + } +} |