aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-08-18 04:13:56 +0900
committernsfisis <nsfisis@gmail.com>2025-08-18 22:21:00 +0900
commit79796388b3c040bda25ce330af72ca514b30f60c (patch)
tree5dd4078e696d6c028e061819de5f28699c772399 /tests
parentdb57dd8732d4dccbf1884ad97f87a3f22a2aef9c (diff)
downloadducc-79796388b3c040bda25ce330af72ca514b30f60c.tar.gz
ducc-79796388b3c040bda25ce330af72ca514b30f60c.tar.zst
ducc-79796388b3c040bda25ce330af72ca514b30f60c.zip
feat: support variable declaration with multiple variables (local variables only)
Diffstat (limited to 'tests')
-rw-r--r--tests/095.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/095.sh b/tests/095.sh
new file mode 100644
index 0000000..58ee35f
--- /dev/null
+++ b/tests/095.sh
@@ -0,0 +1,15 @@
+set -e
+
+cat <<'EOF' > expected
+1 2 3 4
+EOF
+
+bash ../../test_diff.sh <<'EOF'
+int printf();
+int main() {
+ int a, b;
+ a = 1, b = 2;
+ int c = 3, d = 4;
+ printf("%d %d %d %d\n", a, b, c, d);
+}
+EOF