blob: 139b1bd0ef148c0e97e4fbecc70a85ed637bdd56 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/*
bug-3230.c
A bug in code generation for __z88dk_callee __smallc functions with parameters wider than char
*/
#include <testfwk.h>
unsigned int f2(unsigned int c) __smallc __z88dk_callee
{
return c + 1;
}
unsigned int s2(unsigned int c, unsigned int d) __smallc __z88dk_callee
{
return c - d;
}
void testBug(void)
{
ASSERT (f2(2) == 3);
ASSERT (s2(2, 3) == -1);
}
|