aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/test.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-05 15:57:57 +0200
committerlemon <lsof@mailbox.org>2023-06-05 15:57:57 +0200
commitfb3e9ae04d86cd7e80e8d4db3c1c444bfe7f7168 (patch)
tree665d5051bd27b2ee1c7cd7add85cc7fc04eebe32 /test/test.c
parentfe81f55cf6bcddb2cd02ea7327fce1616dd763c2 (diff)
encode calls a different way in the IR
Diffstat (limited to 'test/test.c')
-rw-r--r--test/test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test.c b/test/test.c
index 40b59e6..e429104 100644
--- a/test/test.c
+++ b/test/test.c
@@ -51,18 +51,18 @@ void silly(struct pair *p, struct quad *q)
*q = quad(1,2,3,4);
}
-void test2(struct big *b) {
+int test2(struct big *b) {
struct big s = *b;
- extern void h(int, struct big, float);
+ extern int h(int,float, struct big, float);
s.x[5] += 2;
- h(0, s, 0);
+ return h(0, -.5f, s, 0);
}
struct f2 { float f,g; };
struct f2 f2test(struct f2 *r) {
return *r;
}
-
+#if 0
void fill(char *p, int c, unsigned long n)
{
int t;
@@ -93,5 +93,5 @@ struct f{
union { int x,y;} ;
char flex[];
};
-
+#endif
//