summaryrefslogtreecommitdiffstats
path: root/test/Linker/Inputs/ctors.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Linker/Inputs/ctors.ll')
-rw-r--r--test/Linker/Inputs/ctors.ll6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Linker/Inputs/ctors.ll b/test/Linker/Inputs/ctors.ll
new file mode 100644
index 0000000..f3307bc
--- /dev/null
+++ b/test/Linker/Inputs/ctors.ll
@@ -0,0 +1,6 @@
+@v = weak global i8 1
+@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v}]
+
+define weak void @f() {
+ ret void
+}