Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/c-c++-common/pr69126-2-long.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
68:561a7518be6b | 111:04ced10e8804 |
---|---|
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 } |