aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/struct6.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/struct6.c')
-rw-r--r--test/regression/struct6.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/regression/struct6.c b/test/regression/struct6.c
new file mode 100644
index 00000000..d8d9cc93
--- /dev/null
+++ b/test/regression/struct6.c
@@ -0,0 +1,17 @@
+#include <stdio.h>
+
+struct value {
+ int tag;
+ union {
+ int i;
+ double r;
+ char * sl;
+ } u;
+};
+
+void print_value(struct value * s)
+{
+ printf ("%d\n", s->u.i);
+}
+
+