projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AArch64: Fix AArch64 disassembler mapping symbol search
[deliverable/binutils-gdb.git]
/
binutils
/
testsuite
/
binutils-all
/
testprog.c
diff --git
a/binutils/testsuite/binutils-all/testprog.c
b/binutils/testsuite/binutils-all/testprog.c
index 210656b44877c2b7fa408a978ff25d78fd1622a5..b8531e22674b62a44633eaabce08566e69dc5152 100644
(file)
--- a/
binutils/testsuite/binutils-all/testprog.c
+++ b/
binutils/testsuite/binutils-all/testprog.c
@@
-1,18
+1,21
@@
-/* This program is used to test objcopy and strip. */
+/* This program is used to test objcopy, readelf and strip. */
+
+extern int strcmp (const char *, const char *);
+extern int printf (const char *, ...);
int common;
int global = 1;
static int local = 2;
int common;
int global = 1;
static int local = 2;
-static char string[] = "string";
+static c
onst c
har string[] = "string";
int
int
-fn ()
+fn (
void
)
{
return 3;
}
int
{
return 3;
}
int
-main ()
+main (
void
)
{
if (common != 0
|| global != 1
{
if (common != 0
|| global != 1
@@
-20,9
+23,9
@@
main ()
|| strcmp (string, "string") != 0)
{
printf ("failed\n");
|| strcmp (string, "string") != 0)
{
printf ("failed\n");
-
exit (1)
;
+
return 1
;
}
printf ("ok\n");
}
printf ("ok\n");
-
exit (0)
;
+
return 0
;
}
}
This page took
0.023765 seconds
and
4
git commands to generate.