Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/tm/irrevocable-1.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
1 /* { dg-do compile } */ | |
2 /* { dg-options "-fgnu-tm -O" } */ | |
3 | |
4 int global; | |
5 int george; | |
6 | |
7 extern void crap() __attribute__((transaction_unsafe)); | |
8 | |
9 void | |
10 foo() | |
11 { | |
12 __transaction_relaxed { | |
13 global++; | |
14 crap(); | |
15 george++; | |
16 } | |
17 } |