aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/20091221.c
blob: 655e55cfb24f841ac92a598d9f91e4ebb8ecdce5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-std=gnu17 -fgnu-tm -fdump-tree-tmedge" } */

int i;
extern void virgin () __attribute__((transaction_pure));

void
foo()
{
	__transaction_atomic {
	    virgin(i);
	}
}

/* { dg-final { scan-tree-dump-times "readOnly" 1 "tmedge" } } */