diff options
| author | 2023-06-04 15:10:48 +0200 | |
|---|---|---|
| committer | 2023-06-04 19:21:55 +0200 | |
| commit | 5f4daefd7554f04fd7cd3e416609ed021415a2f7 (patch) | |
| tree | fb9939b5f6415756492105cd486ec2308ae4a09d /test2.c | |
| parent | ae8f6c54bc8dc2a439bff83b590481427c9ed58d (diff) | |
correctly handle function call returning narrow int
Diffstat (limited to 'test2.c')
| -rw-r--r-- | test2.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); +} |