aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/tm/irrevocable-7.c
blob: ea8a00f0c5532747814cfa217d7d06c4daeba304 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-do compile } */
/* { dg-options "-fgnu-tm -fdump-ipa-tmipa" } */

extern void bark(void);

__attribute__((transaction_callable))
int foo()
{
      bark();
}

/* { dg-final { scan-ipa-dump-times "changeTransactionMode \\(0\\)" 1 "tmipa" } } */
/* { dg-final { cleanup-ipa-dump "tmipa" } } */