aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-31 00:04:38 +0900
committernsfisis <nsfisis@gmail.com>2025-08-31 00:04:38 +0900
commit76b0c6bb6bbc339789943ada1f79ec1eba52239f (patch)
tree083f3a6a8f6bb8275b5c6f9bb6a4c12d22b175ee /tests
parent75193c09f1dfcb3c7c726e5492f973a43402e270 (diff)
downloadducc-76b0c6bb6bbc339789943ada1f79ec1eba52239f.tar.gz
ducc-76b0c6bb6bbc339789943ada1f79ec1eba52239f.tar.zst
ducc-76b0c6bb6bbc339789943ada1f79ec1eba52239f.zip
fix: #else/#endif with trailing whitespace or comment
Diffstat (limited to 'tests')
-rw-r--r--tests/109.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/109.sh b/tests/109.sh
new file mode 100644
index 0000000..40b2c82
--- /dev/null
+++ b/tests/109.sh
@@ -0,0 +1,10 @@
+cat <<'EOF' > expected
+EOF
+
+test_diff <<'EOF'
+#if 1 // a
+#else // b
+#endif // c
+
+int main() {}
+EOF