summaryrefslogtreecommitdiff
path: root/support/regression/tests/packcast.c
blob: 86b8a23b92d10d8684b3b78536dcee518724aee1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Tests that a cast used as a parameter gets packed into
   HL
*/
#include <testfwk.h>

void
spoil(int a)
{
  UNUSED(a);
}

void
testCastPack(char x)
{
  int i, j;
  volatile char a = x;

  for (i = 0; i < 5; i++)
    {
      for (j = 0; j < 5; j++)
        {
          spoil(a);
        }
    }
}

void testBug(void)
{
}