aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/reloc3lib1.c
blob: fd649c6c8a660e210ce599a3fb756b00eeaea513 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include "reloc1.h"

int baz[3] = { 28, 29, 30 };

struct A foo = { 1, &foo, &baz[2] };
static struct A xfoo = { 2, &xfoo, &baz[1] };

int f1 (void)
{
  return 1;
}

int f2 (void)
{
  return f1 () + 1;
}

struct A *f3 (void)
{
  return &xfoo;
}