summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/pr46567-2.c
blob: bfe0078bfdbf505b2e72d2319c9bca9de40e94e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */

int funky();
int global;

void SeqfileGetLine()
{
  funky();
}

__attribute__((transaction_callable)) void readLoop()
{
	SeqfileGetLine();
	if (global)
	  funky();

}