summaryrefslogtreecommitdiff
path: root/gas/testsuite/gas/tic80/relocs1.c
blob: 6af04b1100a0728050f57fde6d34edc773764f6e (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
extern int xfunc (int y);

static int sfunc (int y)
{
  xfunc (y);
}

int gfunc (int y)
{
  sfunc (y);
}

int branches (int y)
{
  int z;

  for (z = y; z < y + 10; z++)
    {
      if (z & 0x1)
	{
	  gfunc (z);
	}
      else
	{
	  xfunc (z);
	}
    }
}