source: trunk/binutils/ld/testsuite/ld-elfweak/bar1a.c

Last change on this file was 607, checked in by bird, 22 years ago

Initial revision

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 382 bytes
Line 
1#include <stdio.h>
2
3extern int deallocate_foo;
4
5extern int * bar ();
6extern int * foo ();
7extern void abort ();
8extern void foobar ();
9
10void
11foobar ()
12{
13 if (&deallocate_foo != bar () || &deallocate_foo != foo ())
14 abort ();
15
16 if (deallocate_foo)
17 printf ("weak deallocate_foo\n");
18 else
19 printf ("strong deallocate_foo\n");
20}
21
22int *
23bar()
24{
25 return &deallocate_foo;
26}
Note: See TracBrowser for help on using the repository browser.