aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-srec/sr1.c
blob: d7de977412dd8c60192cafbd4c9246f67aa4191a (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
/* This file is compiled and linked into the S-record format.  */

extern int e1;
extern int e2;
int i;
int j = 1;
static int k;
static int l = 1;
static char ab[] = "This is a string constant";

extern int fn1 ();
extern int fn2 ();

int
main ()
{
  fn1 (ab);
  fn2 ("static string constant");
  return e1 + e2 + i + j + k + l;
}

void
__main ()
{
}