PR tree-optimization/86401
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69126-2-short.c
blobaee43e552dc5db4cffe4a233fed3deed49c3e1f9
1 /* { dg-options "-Wdeprecated-declarations" } */
3 /* IGNORE_SHORT_MACRO is < 32 characters long, and hence its location
4 can be stored without needing an ad-hoc location. */
6 #define IGNORE_SHORT_MACRO _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
7 __attribute__((deprecated)) void f();
8 int main() {
9 IGNORE_SHORT_MACRO
10 f();