summaryrefslogtreecommitdiff
path: root/tests/union_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/union_init.c')
-rw-r--r--tests/union_init.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/union_init.c b/tests/union_init.c
new file mode 100644
index 0000000..80cee1d
--- /dev/null
+++ b/tests/union_init.c
@@ -0,0 +1,10 @@
+union foo {
+ int x;
+ long y;
+};
+
+int foo() {
+ static union foo initval;
+ union foo v = initval;
+ return 0;
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback