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

void __attribute__((transaction_safe)) (*fn)(void);

static void __attribute__((transaction_safe))
foo(void)
{
}

void set_fn(void)
{
  fn = foo;
}