1 /* { dg-options "-Wdeprecated-declarations" } */
2 
3 /* IGNORE_SHORT_MACRO is < 32 characters long, and hence its location
4    can be stored without needing an ad-hoc location.  */
5 
6 #define IGNORE_SHORT_MACRO  _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
7 __attribute__((deprecated)) void f();
main()8 int main() {
9     IGNORE_SHORT_MACRO
10     f();
11 }
12