From 782d4e9df0363ca9f64d8b92a3d6952d552f13a5 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 14 Jun 2023 15:05:43 +0200 Subject: add spilling for function calls, misc fixes --- test/test.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.c b/test/test.c index e429104..c44d1a0 100644 --- a/test/test.c +++ b/test/test.c @@ -47,16 +47,18 @@ struct quad quad(long x, long y, long z, long w) { void silly(struct pair *p, struct quad *q) { - *p = pair(1,2); + *p = pair(-1,2); *q = quad(1,2,3,4); } +#if 0 int test2(struct big *b) { struct big s = *b; extern int h(int,float, struct big, float); s.x[5] += 2; return h(0, -.5f, s, 0); } +#endif struct f2 { float f,g; }; struct f2 f2test(struct f2 *r) { -- cgit v1.2.3