aboutsummaryrefslogtreecommitdiff
path: root/test/Preprocessor/traditional-cpp.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/Preprocessor/traditional-cpp.c')
-rw-r--r--test/Preprocessor/traditional-cpp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Preprocessor/traditional-cpp.c b/test/Preprocessor/traditional-cpp.c
index 72024546ff..5a94c00c96 100644
--- a/test/Preprocessor/traditional-cpp.c
+++ b/test/Preprocessor/traditional-cpp.c
@@ -62,3 +62,19 @@ bracket2(spaces)
/* If this were working, this check would be on.
* CHECK-NOT: {{^}}>>> spaces <<<{{$}}
*/
+
+
+/* Check that #if 0 blocks work as expected */
+#if 0
+#error "this is not an error"
+
+#if 1
+a b c in skipped block
+#endif
+
+/* Comments are whitespace too */
+
+#endif
+/* CHECK-NOT: {{^}}a b c in skipped block{{$}}
+ * CHECK-NOT: {{^}}/* Comments are whitespace too
+ */