summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/tic80/relocs2.c
blob: 3f1120c21bd1c59c1c7b19a479ce23b7b75bf752 (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
extern char x_char;
extern short x_short;
static int x_int;
extern long x_long;
extern float x_float;
extern double x_double;
extern char *x_char_p;

static char s_char;
static short s_short;
static int s_int;
static long s_long;
static float s_float;
static double s_double;
static char *s_char_p;

char g_char;
short g_short;
int g_int;
long g_long;
float g_float;
double g_double;
char *g_char_p;

main ()
{
  x_char = s_char;
  g_char = x_char;
  x_short = s_short;
  g_short = x_short;
  x_int = s_int;
  g_int = x_int;
  x_long = s_long;
  g_long = x_long;
  x_float = s_float;
  g_float = x_float;
  x_double = s_double;
  g_double = x_double;
  x_char_p = s_char_p;
  g_char_p = x_char_p;
}