From 46e79e69ae866df88cb9442a7329c72662ed2db3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 4 Oct 2025 15:33:07 +0900 Subject: refactor: rename test files --- tests/short_type.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 tests/short_type.sh (limited to 'tests/short_type.sh') diff --git a/tests/short_type.sh b/tests/short_type.sh new file mode 100644 index 0000000..fcbec87 --- /dev/null +++ b/tests/short_type.sh @@ -0,0 +1,17 @@ +cat <<'EOF' > expected +2 42 +8 123 +EOF + +test_diff <<'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