aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/c-c++-common/tm/trxn-expr.c
blob: eb27c888fda9e334f41936b6bf454473b7d8647a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { 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" } } */