Add qdf24xx base tuning support.
[official-gcc.git] / gcc / testsuite / gcc.dg / tm / pr51696.c
blobe39c6ca140bf0c4fdc17d21e70cc32e32d0f5016
1 /* { dg-do compile } */
2 /* { dg-options "-fgnu-tm" } */
4 struct list {
5 void (*compare)();
6 } *listPtr;
8 static void (*compare)();
10 __attribute__((transaction_safe))
11 static void func () {
12 listPtr->compare(); /* { dg-error "unsafe indirect function call" } */
13 compare(); /* { dg-error "unsafe indirect function call" } */