[llvm] r254514 - Add an interesting case we already get right.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 2 07:02:43 PST 2015
Author: rafael
Date: Wed Dec 2 09:02:43 2015
New Revision: 254514
URL: http://llvm.org/viewvc/llvm-project?rev=254514&view=rev
Log:
Add an interesting case we already get right.
Added:
llvm/trunk/test/Linker/ctors4.ll
Added: llvm/trunk/test/Linker/ctors4.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Linker/ctors4.ll?rev=254514&view=auto
==============================================================================
--- llvm/trunk/test/Linker/ctors4.ll (added)
+++ llvm/trunk/test/Linker/ctors4.ll Wed Dec 2 09:02:43 2015
@@ -0,0 +1,14 @@
+; RUN: llvm-link -S %s -o - | FileCheck %s
+
+define void @f() {
+ ret void
+}
+
+; We lazy link @v, which causes llvm.global_ctors to have the corresponding
+; entry.
+ at v = linkonce global i8 42
+
+ at llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]
+
+; CHECK: @llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @f, i8* @v }]
+
More information about the llvm-commits
mailing list