diff options
Diffstat (limited to 'elf/reldep6mod1.c')
-rw-r--r-- | elf/reldep6mod1.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/elf/reldep6mod1.c b/elf/reldep6mod1.c new file mode 100644 index 0000000000..037a73a198 --- /dev/null +++ b/elf/reldep6mod1.c @@ -0,0 +1,14 @@ +int foo (void); +int baz (void); +extern int weak (void); +asm (".weak weak"); + +int foo (void) +{ + return 20; +} + +int baz (void) +{ + return weak () + 1; +} |