llvm-for-llvmta/test/Linker/Inputs/ctors3.ll

8 lines
301 B
LLVM
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
$foo = comdat any
%t = type { i8 }
@foo = global %t zeroinitializer, comdat
@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @bar, i8* getelementptr (%t, %t* @foo, i32 0, i32 0) }]
define internal void @bar() comdat($foo) {
ret void
}