Debian Codegraph @

gcc/testsuite/gcc.dg/tm/pr53008.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm -O" } */
3
4 void __attribute__((transaction_safe)) (*fn)(void);
5
6 static void __attribute__((transaction_safe))
7 foo(void)
8 {
9 }
10
11 void set_fn(void)
12 {
13 fn = foo;
14 }