Restore "Move metadata linking after lazy global materialization/linking."
[oota-llvm.git] / test / Linker / Inputs / comdat.ll
1 target datalayout = "e-m:w-p:32:32-i64:64-f80:32-n8:16:32-S32"
2 target triple = "i686-pc-windows-msvc"
3
4 $foo = comdat largest
5 @foo = global i64 43, comdat($foo)
6
7 define i32 @bar() comdat($foo) {
8   ret i32 43
9 }
10
11 $qux = comdat largest
12 @qux = global i32 13, comdat($qux)
13 @in_unselected_group = global i32 13, comdat($qux)
14
15 define i32 @baz() comdat($qux) {
16   ret i32 13
17 }
18
19 $any = comdat any
20 @any = global i64 7, comdat($any)