(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.dg/
tm/
pr45985.c
       1  /* { dg-do compile } */
       2  /* { dg-options "-fgnu-tm" } */
       3  
       4  __attribute__((transaction_unsafe))
       5  void illegal();
       6  
       7  static int a = 0;
       8  void func()
       9  {
      10    __transaction_relaxed {
      11      if( a == 0)
      12        illegal();
      13    }
      14  }