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

extern int i;

main()
{
  __transaction_atomic { i = 0; }
}

#define dummy(func)							\
  __attribute__((noinline,noclone,used)) void func() { asm (""); }

dummy(_ITM_beginTransaction)
dummy(_ITM_commitTransaction)
dummy(_ITM_WU4)
dummy(_ITM_WU8)
dummy(_ITM_registerTMCloneTable)
dummy(_ITM_deregisterTMCloneTable)