| 1 |
// { dg-options "-D_GLIBCXX_USE_DEPRECATED=0 -Wdeprecated -fno-operator-names" } |
| 2 |
// { dg-do preprocess } |
| 3 |
// { dg-bogus "deprecated" "C++17 deprecated <ciso646> but not <iso646.h>" } |
| 4 |
|
| 5 |
#include <iso646.h> |
| 6 |
|
| 7 |
#ifdef and |
| 8 |
# error "The header <iso646.h> defines a macro named and" |
| 9 |
#endif |
| 10 |
|
| 11 |
#ifdef and_eq |
| 12 |
# error "The header <iso646.h> defines a macro named and_eq" |
| 13 |
#endif |
| 14 |
|
| 15 |
#ifdef bitand |
| 16 |
# error "The header <iso646.h> defines a macro named bitand" |
| 17 |
#endif |
| 18 |
|
| 19 |
#ifdef bitor |
| 20 |
# error "The header <iso646.h> defines a macro named bitor" |
| 21 |
#endif |
| 22 |
|
| 23 |
#ifdef compl |
| 24 |
# error "The header <iso646.h> defines a macro named compl" |
| 25 |
#endif |
| 26 |
|
| 27 |
#ifdef not |
| 28 |
# error "The header <iso646.h> defines a macro named not" |
| 29 |
#endif |
| 30 |
|
| 31 |
#ifdef not_eq |
| 32 |
# error "The header <iso646.h> defines a macro named not_eq" |
| 33 |
#endif |
| 34 |
|
| 35 |
#ifdef or |
| 36 |
# error "The header <iso646.h> defines a macro named or" |
| 37 |
#endif |
| 38 |
|
| 39 |
#ifdef or_eq |
| 40 |
# error "The header <iso646.h> defines a macro named or_eq" |
| 41 |
#endif |
| 42 |
|
| 43 |
#ifdef xor |
| 44 |
# error "The header <iso646.h> defines a macro named xor" |
| 45 |
#endif |
| 46 |
|
| 47 |
#ifdef xor_eq |
| 48 |
# error "The header <iso646.h> defines a macro named xor_eq" |
| 49 |
#endif |