summaryrefslogtreecommitdiffstats
path: root/clang/test/Preprocessor/expr_liveness.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/expr_liveness.c')
-rw-r--r--clang/test/Preprocessor/expr_liveness.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/test/Preprocessor/expr_liveness.c b/clang/test/Preprocessor/expr_liveness.c
index 3f4003ea3af..d9e5d7cb25f 100644
--- a/clang/test/Preprocessor/expr_liveness.c
+++ b/clang/test/Preprocessor/expr_liveness.c
@@ -1,4 +1,4 @@
-/* RUN: clang -E %s -DNO_ERRORS &&
+/* RUN: clang -E %s -DNO_ERRORS -Werror -Wundef &&
RUN: not clang -E %s
*/
@@ -44,3 +44,9 @@ baz
#endif
+
+// rdar://6505352
+// -Wundef should not warn about use of undefined identifier if not live.
+#if (!defined(XXX) || XXX > 42)
+#endif
+
OpenPOWER on IntegriCloud