diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:36:22 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-03 20:36:22 +0900 |
| commit | 980d73ce25b116e645b16e9ed37dcf55fdffad7a (patch) | |
| tree | 1039ecaa3a98b443a6818d660763051be1f5a54b /tests | |
| parent | 256cbd88c53d15884f3519ce75890c7bd1626cb2 (diff) | |
| download | ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.tar.gz ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.tar.zst ducc-980d73ce25b116e645b16e9ed37dcf55fdffad7a.zip | |
feat: support native bool/true/false
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/119.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/119.sh b/tests/119.sh new file mode 100644 index 0000000..e1dcb80 --- /dev/null +++ b/tests/119.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +cat <<'EOF' > expected +1,0 +1,1,1 +EOF +test_diff <<'EOF' +int printf(const char*, ...); + +int main() { + bool b1 = true, b0 = false; + printf("%d,%d\n", b1, b0); + printf("%d,%d,%d\n", sizeof(b1), sizeof(b0), sizeof(bool)); +} +EOF |
