mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
14 lines
168 B
C
14 lines
168 B
C
|
#include <stdio.h>
|
||
|
|
||
|
extern int __attribute__ ((weak)) fun (void);
|
||
|
|
||
|
int
|
||
|
main (void)
|
||
|
{
|
||
|
if (&fun != 0)
|
||
|
fun ();
|
||
|
else
|
||
|
printf ("Weak undefined\n");
|
||
|
return 0;
|
||
|
}
|