aboutsummaryrefslogtreecommitdiffstats
path: root/test/regression/struct1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/regression/struct1.c')
-rw-r--r--test/regression/struct1.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/regression/struct1.c b/test/regression/struct1.c
new file mode 100644
index 00000000..2203fe76
--- /dev/null
+++ b/test/regression/struct1.c
@@ -0,0 +1,8 @@
+struct s;
+
+struct s { int x; double y; };
+
+struct s my_s;
+
+double f(struct s * a) { return a->y; }
+