summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/irrevocable-3.c
blob: c08547948035e992e71bb87340995a8f5a991dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-tree-tmmark" } */

extern void bar(void) __attribute__((transaction_callable));

foo()
{
	__transaction_relaxed {
		bar();
	}
}

/* { dg-final { scan-tree-dump-times "GTMA_MAY_ENTER_IRREVOCABLE" 1 "tmmark" } } */
/* { dg-final { cleanup-tree-dump "tmmark" } } */