From e1de8fc36f11ac932707c7113eb4bf3ebc4b1f74 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 3 Aug 2025 13:19:40 +0900 Subject: feat: support short type --- tests/081.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 tests/081.sh (limited to 'tests') diff --git a/tests/081.sh b/tests/081.sh new file mode 100644 index 0000000..03239bc --- /dev/null +++ b/tests/081.sh @@ -0,0 +1,18 @@ +set -e + +cat <<'EOF' > expected +2 42 +8 123 +EOF + +bash ../../test_diff.sh <<'EOF' +int printf(); + +int main() { + short a = 42; + printf("%zu %hd\n", sizeof(a), a); + short* b = &a; + *b = 123; + printf("%zu %hd\n", sizeof(b), *b); +} +EOF -- cgit v1.2.3-70-g09d2