From ed176e4211b27218b9182ead05a13fd6d27d46ac Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Sun, 17 Feb 2019 13:39:02 -0800 Subject: Fix returning struct/union types --- tests/struct-return-1.c | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 tests/struct-return-1.c (limited to 'tests/struct-return-1.c') 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}; +} -- cgit v1.2.3