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

__attribute__((transaction_unsafe))
void illegal();

static int a = 0;
void func()
{
  __transaction_relaxed {
    if( a == 0)
      illegal();
  }
}