diff options
Diffstat (limited to 'clang/test/Preprocessor/cxx_oper_keyword.cpp')
-rw-r--r-- | clang/test/Preprocessor/cxx_oper_keyword.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/cxx_oper_keyword.cpp b/clang/test/Preprocessor/cxx_oper_keyword.cpp new file mode 100644 index 0000000..3fc246d --- /dev/null +++ b/clang/test/Preprocessor/cxx_oper_keyword.cpp @@ -0,0 +1,7 @@ +// RUN: not %clang_cc1 %s -E +// RUN: %clang_cc1 %s -E -fno-operator-names + +// Not valid in C++ unless -fno-operator-names is passed. +#define and foo + + |