From 5f4daefd7554f04fd7cd3e416609ed021415a2f7 Mon Sep 17 00:00:00 2001 From: lemon Date: Sun, 4 Jun 2023 15:10:48 +0200 Subject: correctly handle function call returning narrow int --- test2.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test2.c') 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); +} -- cgit v1.2.3