aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test_unions.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_unions.sh')
-rw-r--r--tests/test_unions.sh23
1 files changed, 0 insertions, 23 deletions
diff --git a/tests/test_unions.sh b/tests/test_unions.sh
deleted file mode 100644
index b588792..0000000
--- a/tests/test_unions.sh
+++ /dev/null
@@ -1,23 +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
-