]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tm/irrevocable-1.c
Merge from transactional-memory branch.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tm / irrevocable-1.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O" } */
3
4 int global;
5 int george;
6
7 extern crap() __attribute__((transaction_unsafe));
8
9 foo()
10 {
11 __transaction_relaxed {
12 global++;
13 crap();
14 george++;
15 }
16 }