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

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

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

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