aboutsummaryrefslogtreecommitdiffhomepage
path: root/test2.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-04 15:10:48 +0200
committerlemon <lsof@mailbox.org>2023-06-04 19:21:55 +0200
commit5f4daefd7554f04fd7cd3e416609ed021415a2f7 (patch)
treefb9939b5f6415756492105cd486ec2308ae4a09d /test2.c
parentae8f6c54bc8dc2a439bff83b590481427c9ed58d (diff)
correctly handle function call returning narrow int
Diffstat (limited to 'test2.c')
-rw-r--r--test2.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/test2.c b/test2.c
index 13ed47c..7d39164 100644
--- a/test2.c
+++ b/test2.c
@@ -13,3 +13,11 @@ v2d add(v2d a, v2d b)
addp(&a, &b);
return a;
}
+
+short s(int a, int b) {
+ return a + b;
+}
+
+int i() {
+ return s(1,2);
+}