summaryrefslogtreecommitdiff
path: root/util/romcc/tests/simple_test83.c
diff options
context:
space:
mode:
Diffstat (limited to 'util/romcc/tests/simple_test83.c')
-rw-r--r--util/romcc/tests/simple_test83.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/romcc/tests/simple_test83.c b/util/romcc/tests/simple_test83.c
new file mode 100644
index 0000000000..cf9f817fe2
--- /dev/null
+++ b/util/romcc/tests/simple_test83.c
@@ -0,0 +1,16 @@
+
+
+struct result {
+ int a, b, c, d;
+};
+
+static struct result main(int a, int b, int c, int d)
+{
+ struct result result;
+ result.a = d + 1;
+ result.b = c + 1;
+ result.c = b + 1;
+ result.d = a + 1;
+
+ return result;
+}