1/* { dg-do compile } */ 2/* { dg-options "-fgnu-tm" } */ 3 4#define W(X) __attribute__((transaction_wrap(X))) 5void f1(void); 6void f2(int); 7int i3; 8int f7(void); 9 10void g1(void) W(f1); 11void g2(void) W(f2); /* { dg-error "is not compatible" } */ 12void g3(void) W(i3); /* { dg-error "is not a function" } */ 13void g4(void) W(f4); /* { dg-error "undeclared" } */ 14void g5(void) W(1); /* { dg-error "not an identifier" } */ 15void g6(void) W("f1"); /* { dg-error "not an identifier" } */ 16void g7(void) W(f7); /* { dg-error "is not compatible" } */ 17