diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-05-04 21:12:12 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-05-04 21:43:26 +0900 |
| commit | 28c604c82bd76ec6bcbb0960ecadd706a6c20614 (patch) | |
| tree | 3795417a3a765fab0b032c7b5fb1136a09af39ee /tests | |
| parent | 576b2064e05633b34de216e04b71407a5f15164b (diff) | |
| download | P4Dcc-28c604c82bd76ec6bcbb0960ecadd706a6c20614.tar.gz P4Dcc-28c604c82bd76ec6bcbb0960ecadd706a6c20614.tar.zst P4Dcc-28c604c82bd76ec6bcbb0960ecadd706a6c20614.zip | |
logical not expr
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/035.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/035.sh b/tests/035.sh new file mode 100644 index 0000000..a32709e --- /dev/null +++ b/tests/035.sh @@ -0,0 +1,17 @@ +set -e + +cat <<'EOF' > expected +0 +1 +0 +EOF +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + printf("%d\n", !1); + printf("%d\n", !0); + printf("%d\n", !23); + return 0; +} +EOF |
