diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-18 04:13:56 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-18 22:21:00 +0900 |
| commit | 79796388b3c040bda25ce330af72ca514b30f60c (patch) | |
| tree | 5dd4078e696d6c028e061819de5f28699c772399 /tests | |
| parent | db57dd8732d4dccbf1884ad97f87a3f22a2aef9c (diff) | |
| download | ducc-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.sh | 15 |
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 |
