xref: /llvm-project/llvm/test/LTO/Resolution/X86/Inputs/comdat-mixed-lto.ll (revision 7b1d793713cf9ed9ab719f33b332f9c66a1fc5cc)
1; ModuleID = 'comdat-mixed-lto1.o'
2source_filename = "comdat-mixed-lto1.cpp"
3target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
4target triple = "x86_64-unknown-linux-gnu"
5
6%"class.Test::ptr" = type { i32 }
7
8$C = comdat any
9
10@C = linkonce_odr global %"class.Test::ptr" zeroinitializer, comdat, align 4
11@llvm.global_ctors = appending global [1 x { i32, void ()*, i8* }] [{ i32, void ()*, i8* } { i32 65535, void ()* @__cxx_global_var_init, i8* bitcast (%"class.Test::ptr"* @C to i8*) }]
12
13define void @testglobfunc() #1 section ".text.startup" comdat($C) {
14entry:
15  ret void
16}
17
18; Function Attrs: noinline uwtable
19define internal void @__cxx_global_var_init() #1 section ".text.startup" comdat($C) {
20entry:
21  store i32 0, i32* getelementptr inbounds (%"class.Test::ptr", %"class.Test::ptr"* @C, i32 0, i32 0), align 4
22  ret void
23}
24