Pick three bugfixes from next branch to trunk for inclusion in 4.5.0 RC2, as discusse...
[sdcc.git] / sdcc / support / regression / tests / packcast.c
blob86b8a23b92d10d8684b3b78536dcee518724aee1
1 /* Tests that a cast used as a parameter gets packed into
2 HL
3 */
4 #include <testfwk.h>
6 void
7 spoil(int a)
9 UNUSED(a);
12 void
13 testCastPack(char x)
15 int i, j;
16 volatile char a = x;
18 for (i = 0; i < 5; i++)
20 for (j = 0; j < 5; j++)
22 spoil(a);
27 void testBug(void)