summaryrefslogtreecommitdiff
path: root/tests/struct_return.c
diff options
context:
space:
mode:
authorMatthew Sotoudeh <matthew@masot.net>2023-07-25 14:58:33 -0700
committerMatthew Sotoudeh <matthew@masot.net>2023-07-25 14:58:33 -0700
commit1d943da0cf9154e7ce78ce867cdbb91531c5d78e (patch)
tree40c5c6c3ba7fafa6567aa5b5aa216caecf3935fc /tests/struct_return.c
initial dietc commit
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