summaryrefslogtreecommitdiffstats
path: root/test/Preprocessor/cxx_oper_keyword.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/cxx_oper_keyword.cpp')
-rw-r--r--test/Preprocessor/cxx_oper_keyword.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/Preprocessor/cxx_oper_keyword.cpp b/test/Preprocessor/cxx_oper_keyword.cpp
new file mode 100644
index 0000000..faae687
--- /dev/null
+++ b/test/Preprocessor/cxx_oper_keyword.cpp
@@ -0,0 +1,7 @@
+// RUN: not clang-cc %s -E &&
+// RUN: clang-cc %s -E -fno-operator-names
+
+// Not valid in C++ unless -fno-operator-names is passed.
+#define and foo
+
+
OpenPOWER on IntegriCloud