aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/c-c++-common/tm/trxn-expr.c
blob: 53d4677e3e6879ba983b32984bb140a221c0ed1b (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 y, x, york;

void foobar(void)
{
  x = y + __transaction_atomic (york);
}

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