aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/irrevocable-3.c
blob: c9a8e63dc900aa610f45941764d78fcb1ba921d8 (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));

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

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