Back to index

cell-binutils  2.17cvs20070401
bar1a.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 extern int deallocate_foo;
00004 
00005 extern int * bar ();
00006 extern int * foo ();
00007 extern void abort ();
00008 extern void foobar ();
00009 
00010 void
00011 foobar ()
00012 {
00013   if (&deallocate_foo != bar () || &deallocate_foo != foo ())
00014     abort ();
00015 
00016   if (deallocate_foo)
00017     printf ("weak deallocate_foo\n");
00018   else
00019     printf ("strong deallocate_foo\n");
00020 }
00021 
00022 int *
00023 bar()
00024 {
00025   return &deallocate_foo;
00026 }