Back to index

cell-binutils  2.17cvs20070401
weakundef.c
Go to the documentation of this file.
00001 #include <stdio.h>
00002 
00003 #pragma weak undef_func
00004 
00005 extern int undef_func (void);
00006 int (*ptr_to_func)(void) = undef_func;
00007 
00008 int
00009 main (void)
00010 {
00011   if (ptr_to_func == NULL)
00012     printf ("PASSED\n");
00013 
00014   return 0;
00015 }