summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/relocate.c
blob: df8545dc62efe0e4b6bfd66cbf3bdc861ed6331b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
static int static_foo = 1;
static int static_bar = 2;

/* This padding is just for the benefit of the test harness.  It
   causes the globals to have different addresses than the functions.  */
int dummy[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

int global_foo = 3;
int global_bar = 4;

int
function_foo ()
{
  return 5;
}

int
function_bar ()
{
  return 6;
}