diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-15 19:45:48 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 19:45:48 +0900 |
| commit | 70f3db84bb3e2f4d85da7392a112f6f82ce97152 (patch) | |
| tree | 7eff3177bbf6433c475da9f7f07460352d41c85f /tests/091.sh | |
| parent | 4e784d3d5b757f1088d5774897898ca108e9d5d8 (diff) | |
| download | ducc-70f3db84bb3e2f4d85da7392a112f6f82ce97152.tar.gz ducc-70f3db84bb3e2f4d85da7392a112f6f82ce97152.tar.zst ducc-70f3db84bb3e2f4d85da7392a112f6f82ce97152.zip | |
feat: implement conditional expression
Diffstat (limited to 'tests/091.sh')
| -rw-r--r-- | tests/091.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/091.sh b/tests/091.sh new file mode 100644 index 0000000..9281811 --- /dev/null +++ b/tests/091.sh @@ -0,0 +1,13 @@ +set -e + +cat <<'EOF' > expected +2 5 +EOF + +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + printf("%d %d\n", 1 ? 2 : 3, 0 ? 4 : 5); +} +EOF |
