comparison gcc/testsuite/c-c++-common/pr69558.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
9 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"") 9 _Pragma ("GCC diagnostic ignored \"-Wdeprecated-declarations\"")
10 #define B \ 10 #define B \
11 _Pragma ("GCC diagnostic pop") 11 _Pragma ("GCC diagnostic pop")
12 #define C(x) \ 12 #define C(x) \
13 A \ 13 A \
14 static inline void bar (void) { x (); } /* { dg-bogus "in definition of|deprecated" "" { xfail { c++ } } } */ \ 14 static inline void bar (void) { x (); } /* { dg-bogus "in definition of|deprecated" "" } */ \
15 B 15 B
16 16
17 __attribute__((deprecated)) void foo (void); /* { dg-bogus "declared here" "" { xfail { c++ } } } */ 17 __attribute__((deprecated)) void foo (void); /* { dg-bogus "declared here" "" } */
18 18
19 C (foo) /* { dg-bogus "is deprecated" } */ 19 C (foo) /* { dg-bogus "is deprecated" } */