blob: dd7168f0519476af2533ec81ce0e067bd12feb6b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */
void __attribute__((transaction_safe))
foo(void);
void __attribute__((transaction_safe))
set_fn(void)
{
void __attribute__((transaction_safe)) (*fn)(void);
fn = foo;
fn();
}
/* { dg-final { scan-assembler "_ITM_getTMCloneSafe" } } */