Imported Upstream version 2.9.0
[debian/cc1111] / support / regression / tests / packcast.c
1 /* Tests that a cast used as a parameter gets packed into
2    HL
3 */
4 #include <testfwk.h>
5
6 void
7 spoil(int a)
8 {
9   UNUSED(a);
10 }
11
12 void
13 testCastPack(char x)
14 {
15   int i, j;
16   volatile char a = x;
17
18   for (i = 0; i < 5; i++)
19     {
20       for (j = 0; j < 5; j++)
21         {
22           spoil(a);
23         }
24     }
25 }
26
27 void testBug(void)
28 {
29 }