aboutsummaryrefslogtreecommitdiff
path: root/test/old-elf/Inputs/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/old-elf/Inputs/shared.c')
-rw-r--r--test/old-elf/Inputs/shared.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/old-elf/Inputs/shared.c b/test/old-elf/Inputs/shared.c
deleted file mode 100644
index 2be91c4b9e45..000000000000
--- a/test/old-elf/Inputs/shared.c
+++ /dev/null
@@ -1,16 +0,0 @@
-#include <stdio.h>
-
-extern int i;
-int i = 42;
-
-// Undefined weak function in a dynamic library.
-__attribute__((weak)) void weakfoo();
-
-// Regular function in a dynamic library.
-void foo() {
- // Try to call weakfoo so that the reference to weekfoo will be included in
- // the resulting .so file.
- if (weakfoo)
- weakfoo();
- puts("Fooo!!");
-}