aboutsummaryrefslogtreecommitdiff
path: root/tests/struct-return-1.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-17 13:39:02 -0800
committerMichael Forney <mforney@mforney.org>2019-02-17 13:45:07 -0800
commited176e4211b27218b9182ead05a13fd6d27d46ac (patch)
treed1f9ae26cfb21d6fdc39ab5a05a28b715170ca56 /tests/struct-return-1.c
parentfed14a31ca554b54c4f2eebefd09aeaeda782aba (diff)
Fix returning struct/union types
Diffstat (limited to 'tests/struct-return-1.c')
-rw-r--r--tests/struct-return-1.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/struct-return-1.c b/tests/struct-return-1.c
new file mode 100644
index 0000000..e1631a8
--- /dev/null
+++ b/tests/struct-return-1.c
@@ -0,0 +1,3 @@
+struct s {int x;} f(void) {
+ return (struct s){2};
+}