summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/expr_define_expansion.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/expr_define_expansion.c')
-rw-r--r--clang/test/Preprocessor/expr_define_expansion.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/expr_define_expansion.c b/clang/test/Preprocessor/expr_define_expansion.c
new file mode 100644
index 0000000..38c0384
--- /dev/null
+++ b/clang/test/Preprocessor/expr_define_expansion.c
@@ -0,0 +1,5 @@
+// RUN: %clang_cc1 %s -E -CC -pedantic -verify
+
+#define FOO && 1
+#if defined FOO FOO
+#endif