]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/c-c++-common/tm/abort-2.c
Merge from transactional-memory branch.
[thirdparty/gcc.git] / gcc / testsuite / c-c++-common / tm / abort-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm" } */
3
4 int g;
5 void f(void)
6 {
7 __transaction_atomic {
8 if (g == 0)
9 __transaction_cancel;
10 }
11 }