summaryrefslogtreecommitdiff
path: root/tests/struct_return.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/struct_return.c')
-rw-r--r--tests/struct_return.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/struct_return.c b/tests/struct_return.c
new file mode 100644
index 0000000..3d98574
--- /dev/null
+++ b/tests/struct_return.c
@@ -0,0 +1,16 @@
+struct foo {
+ int xyz1;
+ int xyz2;
+ int xyz3;
+ int xyz4;
+ int xyz5;
+ int xyz6;
+ int xyz7;
+ int xyz8;
+};
+
+extern struct foo baz(int bar);
+
+struct foo baz(int bar) {
+ return (struct foo){1};
+}
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback