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;
}
|