aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elfweak/main1.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-09-14 23:43:17 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-09-14 23:43:17 +0000
commit0c52a746f7537f9adc57c9b6b9980139fa2632cf (patch)
treeb74a8ec4675c8478c07e3f58d2d5624b16a7e997 /ld/testsuite/ld-elfweak/main1.c
parent920acd6218e5ef0870b884503b44f04c755e67f9 (diff)
downloadgdb-0c52a746f7537f9adc57c9b6b9980139fa2632cf.zip
gdb-0c52a746f7537f9adc57c9b6b9980139fa2632cf.tar.gz
gdb-0c52a746f7537f9adc57c9b6b9980139fa2632cf.tar.bz2
2001-09-14 H.J. Lu <hjl@gnu.org>
* ld-elfweak/bar.c: Updated. * ld-elfweak/bar1a.c: Likewise. * ld-elfweak/main.c: Likewise. * ld-elfweak/main1.c: Likewise. * ld-elfweak/elfweak.exp: Likewise. * ld-elfweak/weakdata.dsym: Updated.
Diffstat (limited to 'ld/testsuite/ld-elfweak/main1.c')
-rw-r--r--ld/testsuite/ld-elfweak/main1.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/ld/testsuite/ld-elfweak/main1.c b/ld/testsuite/ld-elfweak/main1.c
index 8a897a2..39f819e 100644
--- a/ld/testsuite/ld-elfweak/main1.c
+++ b/ld/testsuite/ld-elfweak/main1.c
@@ -1,22 +1,11 @@
-#include <stdio.h>
-
#pragma weak deallocate_foo
int deallocate_foo = 1;
-extern int * bar ();
-extern int * foo ();
-extern void abort ();
+extern void foobar ();
int
main ()
{
- if (&deallocate_foo != bar () || &deallocate_foo != foo ())
- abort ();
-
- if (deallocate_foo)
- printf ("weak deallocate_foo\n");
- else
- printf ("strong deallocate_foo\n");
-
+ foobar ();
return 0;
}