blob: e39c6ca140bf0c4fdc17d21e70cc32e32d0f5016 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-fgnu-tm" } */
struct list {
void (*compare)();
} *listPtr;
static void (*compare)();
__attribute__((transaction_safe))
static void func () {
listPtr->compare(); /* { dg-error "unsafe indirect function call" } */
compare(); /* { dg-error "unsafe indirect function call" } */
}