aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/pr60908.c
blob: 773438ddbe6f8dddf25a2baf666dd1d0bd7ca92d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */

int t, v;

int
foo (void)
{
  while (1)
    {
      __transaction_atomic { v++; }
      if (t)
        return 0;
    }
}