aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-04 11:20:43 +0200
committerlemon <lsof@mailbox.org>2023-06-04 11:20:43 +0200
commitb295cd602d59888c373819ec3bcd63e12f008702 (patch)
tree8e3a6b6c0262451b040659e67164bb85635a2512 /test.c
parent51197251c464a742c5bef5a67c6da222d32b14d3 (diff)
bugfix
Diffstat (limited to 'test.c')
-rw-r--r--test.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test.c b/test.c
index 670c7c6..6d1063e 100644
--- a/test.c
+++ b/test.c
@@ -51,6 +51,13 @@ void silly(struct pair *p, struct quad *q)
*q = quad(1,2,3,4);
}
+void test2(struct big *b) {
+ struct big s = *b;
+ extern void h(int, struct big, float);
+ s.x[5] += 2;
+ h(0, s, 0);
+}
+
struct f2 { float f,g; };
struct f2 f2test(struct f2 *r) {
return *r;