Files
UnrealEngineUWP/Engine/Source/ThirdParty/MCPP/mcpp-2.7.2/cpp-test/test-t/e_operat.C
UnrealBot f645340e6e Code snapshot for CL 2114451
[CL 2114451 in Main branch]
2014-06-23 17:33:51 -04:00

14 lines
469 B
C

/* e_operat.C */
/*
* In C++98 the 11 identifier-like tokens are operators, not identifiers.
* Note: in C95 these are defined as macros by <iso646.h>.
*/
/* { dg-do preprocess } */
/* { dg-options "-std=c++98 -pedantic-errors" } */
/* Cannot define operator as a macro. */
#define and && /* { dg-error "cannot be used as a macro name| is defined as macro" } */
#define xor_eq ^= /* { dg-error "cannot be used as a macro name| is defined as macro" } */