gcc/testsuite/c-c++-common/pr69126-2-long.c
raw| 1 | /* { dg-options "-Wdeprecated-declarations" } */ |
| 2 | |
| 3 | /* The macro's name is >= 32 characters long, and hence its location |
| 4 | requires an ad-hoc location. */ |
| 5 | |
| 6 | #define IGNORE_WHERE_MACRO_IS_LONGER_THAN_31_CHARS _Pragma("GCC diagnostic ignored \"-Wdeprecated-declarations\"") |
| 7 | __attribute__((deprecated)) void f(); |
| 8 | int main() { |
| 9 | IGNORE_WHERE_MACRO_IS_LONGER_THAN_31_CHARS |
| 10 | f(); |
| 11 | } |