]>
git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/tm/irrevocable-2.c
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -fdump-tree-tmedge" } */
4 /* Test that a direct call to __builtin__ITM_changeTransactionMode()
5 sets the irrevocable bit. */
12 __transaction_relaxed
{
14 __builtin__ITM_changeTransactionMode (0);
19 /* { dg-final { scan-tree-dump-times "doesGoIrrevocable" 1 "tmedge" } } */
20 /* { dg-final { scan-tree-dump-times "hasNoIrrevocable" 0 "tmedge" } } */
21 /* { dg-final { cleanup-tree-dump "tmedge" } } */