summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/unsorted/m2.c
blob: 203c855b5eb65df508112427bb7f706dbaa8ecf1 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
void
store16 (p, a)
     short *p;
     short a;
{
  *p = a;
}

signed int
sign_extend16 (p)
     signed short *p;
{
  return *p;
}

unsigned int
zero_extend16 (p)
     unsigned short *p;
{
  return *p;
}

void
store8 (p, a)
     char *p;
     char a;
{
  *p = a;
}

signed int
sign_extend8 (p)
     signed char *p;
{
  return *p;
}

unsigned int
zero_extend8 (p)
     unsigned char *p;
{
  return *p;
}