diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-15 00:04:23 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-15 00:04:23 +0900 |
| commit | 2009a26e17ad9dbefee3a5ca4339d754e51ef078 (patch) | |
| tree | 5c311a1a17f40786f53f4a89c5bbbb72402a6b2d /tests/unions.sh | |
| parent | ef0cb4dbdc1c036f70f94a905cbacae9be5abf5e (diff) | |
| download | ducc-2009a26e17ad9dbefee3a5ca4339d754e51ef078.tar.gz ducc-2009a26e17ad9dbefee3a5ca4339d754e51ef078.tar.zst ducc-2009a26e17ad9dbefee3a5ca4339d754e51ef078.zip | |
refactor: write more tests in C
Diffstat (limited to 'tests/unions.sh')
| -rw-r--r-- | tests/unions.sh | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/unions.sh b/tests/unions.sh deleted file mode 100644 index d1e87d6..0000000 --- a/tests/unions.sh +++ /dev/null @@ -1,22 +0,0 @@ -cat <<'EOF' > expected -8 -42 -42 -EOF - -test_diff <<'EOF' -int printf(); - -union U { - int i; - long l; -}; - -int main() { - union U u; - printf("%zu\n", sizeof(u)); - u.l = 42; - printf("%d\n", u.i); - printf("%ld\n", u.l); -} -EOF |
