diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-01-08 11:10:27 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-01-08 11:10:27 +0000 |
commit | 8b46c09925a80623c289e346c12921bc09fd1678 (patch) | |
tree | 01507d0da339cc7e5e6f5d16dfa625f94910b091 /gnu/usr.bin/binutils/ld/testsuite/ld-srec/sr1.c | |
parent | 5d56227f9458a53138642c1b4488b4a30f85f334 (diff) |
Initial GNU binutils 2.6 import
Diffstat (limited to 'gnu/usr.bin/binutils/ld/testsuite/ld-srec/sr1.c')
-rw-r--r-- | gnu/usr.bin/binutils/ld/testsuite/ld-srec/sr1.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/testsuite/ld-srec/sr1.c b/gnu/usr.bin/binutils/ld/testsuite/ld-srec/sr1.c new file mode 100644 index 00000000000..e4fcee1a3aa --- /dev/null +++ b/gnu/usr.bin/binutils/ld/testsuite/ld-srec/sr1.c @@ -0,0 +1,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; +} + +int +__main () +{ +} |