]> Git Repo - binutils.git/blame - ld/testsuite/ld-elfweak/bar1a.c
2001-09-14 H.J. Lu <[email protected]>
[binutils.git] / ld / testsuite / ld-elfweak / bar1a.c
CommitLineData
0c52a746 1#include <stdio.h>
bd7c9df6 2
0c52a746
L
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}
bd7c9df6
L
21
22int *
23bar()
24{
25 return &deallocate_foo;
26}
This page took 0.023565 seconds and 4 git commands to generate.