diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-15 19:55:28 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 19:55:28 +0900 |
| commit | e2064554b6d653439fbbb2bcde00e6f1a1079cb4 (patch) | |
| tree | 56e44f19a516169b094087902e8b5d4c1188a6f8 /tests/092.sh | |
| parent | 70f3db84bb3e2f4d85da7392a112f6f82ce97152 (diff) | |
| download | ducc-e2064554b6d653439fbbb2bcde00e6f1a1079cb4.tar.gz ducc-e2064554b6d653439fbbb2bcde00e6f1a1079cb4.tar.zst ducc-e2064554b6d653439fbbb2bcde00e6f1a1079cb4.zip | |
feat: support global variables with initializer
Diffstat (limited to 'tests/092.sh')
| -rw-r--r-- | tests/092.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/092.sh b/tests/092.sh new file mode 100644 index 0000000..00dcb44 --- /dev/null +++ b/tests/092.sh @@ -0,0 +1,17 @@ +set -e + +cat <<'EOF' > expected +42 123 999 +EOF + +bash ../../test_diff.sh <<'EOF' +int printf(); + +char a = 42; +short b = 123; +int c = 999; + +int main() { + printf("%d %d %d\n", a, b, c); +} +EOF |
