aboutsummaryrefslogtreecommitdiff
path: root/tests/struct-passing.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-02-11 18:43:18 -0800
committerMichael Forney <mforney@mforney.org>2019-02-12 01:55:14 -0800
commiteddc4693e49f70cd214b7645cb9fce54a89fbb6c (patch)
treefa1b640f49cde25e323aa0629aed64c064da930e /tests/struct-passing.c
Initial import
Diffstat (limited to 'tests/struct-passing.c')
-rw-r--r--tests/struct-passing.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/struct-passing.c b/tests/struct-passing.c
new file mode 100644
index 0000000..54c65a2
--- /dev/null
+++ b/tests/struct-passing.c
@@ -0,0 +1,11 @@
+struct s {
+ int x;
+ struct {
+ char y[3];
+ short z;
+ } s[2];
+ double w;
+};
+
+void f(struct s s) {
+}