aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tm/nested-2.c
blob: 205ca8d7eac6a13e1181152581030a563636a139 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */

void foobar(void)
{
    __transaction_atomic {
       foobar();
    }
}

void doit(void) __attribute__((transaction_safe));

__attribute__((transaction_callable))
void callable(void)
{
  __transaction_atomic {
    doit();
  }
}