[C++ PATCH] Deprecate -ffriend-injection
[official-gcc.git] / gcc / testsuite / c-c++-common / pr69126-2-long.c
blobf4f1964cba180519476733978a20043e4a1a420f
1 /* { dg-options "-Wdeprecated-declarations" } */
3 /* The macro's name is >= 32 characters long, and hence its location
4 requires an ad-hoc location. */
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();