diff options
Diffstat (limited to 'ld/testsuite/ld-elfweak/main.c')
-rw-r--r-- | ld/testsuite/ld-elfweak/main.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ld/testsuite/ld-elfweak/main.c b/ld/testsuite/ld-elfweak/main.c new file mode 100644 index 0000000..9daaceb --- /dev/null +++ b/ld/testsuite/ld-elfweak/main.c @@ -0,0 +1,18 @@ +#include <stdio.h> + +#pragma weak foo + +extern void foo (); + +void +foo () +{ + printf ("weak foo\n"); +} + +int +main () +{ + foo (); + return 0; +} |