summaryrefslogtreecommitdiff
path: root/clang/test/Preprocessor/disabled-cond-diags.c
diff options
context:
space:
mode:
Diffstat (limited to 'clang/test/Preprocessor/disabled-cond-diags.c')
-rw-r--r--clang/test/Preprocessor/disabled-cond-diags.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/disabled-cond-diags.c b/clang/test/Preprocessor/disabled-cond-diags.c
new file mode 100644
index 0000000..531842a
--- /dev/null
+++ b/clang/test/Preprocessor/disabled-cond-diags.c
@@ -0,0 +1,10 @@
+// RUN: %clang_cc1 -E %s 2>&1 | not grep "warning\|error"
+
+#if 0
+
+// Shouldn't get warnings here.
+??( ??)
+
+// Should not get an error here.
+` ` ` `
+#endif