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

int foo;

__attribute__((transaction_callable))
void cloneme()
{
  foo = 666;
}

/* { dg-final { scan-tree-dump-times "ITM_WU.*foo" 1 "tmmark" } } */
/* { dg-final { cleanup-tree-dump "tmmark" } } */