1 // { dg-warning "Callback to register pragmas" "" { target *-*-* } 0 }
5 #pragma GCCPLUGIN sayhello "here" // { dg-warning "'pragma GCCPLUGIN sayhello' outside of function: here" }
7 int some_func (const char* s)
9 #pragma GCCPLUGIN sayhello "at start" // { dg-warning "'pragma GCCPLUGIN sayhello' from function 'some_func': at start" }
11 #define DO_PRAGMA(x) _Pragma(#x)
14 DO_PRAGMA(GCCPLUGIN sayhello "in block"); // { dg-warning "'pragma GCCPLUGIN sayhello' from function 'some_func': in block" }