Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/tm/irrevocable-2.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 /* { dg-options "-fgnu-tm -fdump-tree-tmedge" } */ | |
3 | |
4 /* Test that a direct call to __builtin__ITM_changeTransactionMode() | |
5 sets the irrevocable bit. */ | |
6 | |
7 int global; | |
8 int george; | |
9 | |
10 void | |
11 foo() | |
12 { | |
13 __transaction_relaxed { | |
14 global++; | |
15 __builtin__ITM_changeTransactionMode (0); | |
16 george++; | |
17 } | |
18 } | |
19 | |
20 /* { dg-final { scan-tree-dump-times "doesGoIrrevocable" 1 "tmedge" } } */ | |
21 /* { dg-final { scan-tree-dump-times "hasNoIrrevocable" 0 "tmedge" } } */ |