repo.or.cz
/
binutils.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2000-10-31 Philip Blundell <philb@gnu.org>
[binutils.git]
/
binutils
/
testsuite
/
binutils-all
/
testprog.c
blob
c2b1856dedd038152490081bfadc129d44c0a054
1
/* This program is used to test objcopy and strip. */
2
3
#include <stdio.h>
4
5
int
common
;
6
int
global
=
1
;
7
static int
local
=
2
;
8
static char
string
[] =
"string"
;
9
10
int
11
fn
()
12
{
13
return
3
;
14
}
15
16
int
17
main
()
18
{
19
if
(
common
!=
0
20
||
global
!=
1
21
||
local
!=
2
22
||
strcmp
(
string
,
"string"
) !=
0
)
23
{
24
printf
(
"failed
\n
"
);
25
exit
(
1
);
26
}
27
28
printf
(
"ok
\n
"
);
29
exit
(
0
);
30
}