diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2023-07-25 14:58:33 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2023-07-25 14:58:33 -0700 |
commit | 1d943da0cf9154e7ce78ce867cdbb91531c5d78e (patch) | |
tree | 40c5c6c3ba7fafa6567aa5b5aa216caecf3935fc /tests/struct_return.c |
initial dietc commit
Diffstat (limited to 'tests/struct_return.c')
-rw-r--r-- | tests/struct_return.c | 16 |
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}; +} |