aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_nested_conditionals.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_nested_conditionals.sh')
-rw-r--r--tests/test_nested_conditionals.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_nested_conditionals.sh b/tests/test_nested_conditionals.sh
new file mode 100644
index 0000000..d149e07
--- /dev/null
+++ b/tests/test_nested_conditionals.sh
@@ -0,0 +1,12 @@
+cat <<'EOF' > expected
+EOF
+test_diff <<'EOF'
+#if 0
+# if 1
+# error "not an error"
+# endif
+#endif
+
+int main() {}
+EOF
+