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