summaryrefslogtreecommitdiff
path: root/util/romcc/tests/fail_test11.c
blob: 3252060cc8b529d107718cc19ab02af0ca26c48b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


struct big_arg {
	int x, y;
};
struct result {
	struct big_arg a;
	int c, d;
};

static struct result main(int a, int b, int c, int  d)
{
	struct result result;
	result.a.x = d + 1;
	result.a.y = c + 1;
	result.c = b + 1;
	result.d = a + 1;

	return result;
}