aboutsummaryrefslogtreecommitdiff
path: root/tests/union.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/union.c')
-rw-r--r--tests/union.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/union.c b/tests/union.c
new file mode 100644
index 0000000..9b4e5f9
--- /dev/null
+++ b/tests/union.c
@@ -0,0 +1,4 @@
+union {
+ int x;
+ double y;
+} a = {.x = 5}, b = {.y = 7.5};