diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-03 13:19:40 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-15 10:06:21 +0900 |
| commit | e1de8fc36f11ac932707c7113eb4bf3ebc4b1f74 (patch) | |
| tree | 65c0a362dc9343b09a6e452d5526e39da834b986 /tests/081.sh | |
| parent | 185778aa3ae35252ae992f12a9dfc39a4eab5758 (diff) | |
| download | ducc-e1de8fc36f11ac932707c7113eb4bf3ebc4b1f74.tar.gz ducc-e1de8fc36f11ac932707c7113eb4bf3ebc4b1f74.tar.zst ducc-e1de8fc36f11ac932707c7113eb4bf3ebc4b1f74.zip | |
feat: support short type
Diffstat (limited to 'tests/081.sh')
| -rw-r--r-- | tests/081.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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 |
