1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Linker/Inputs/pr27044.ll
Rafael Espindola 832680bbb5 Fix another case where we were unconditionally linking linkonce GVs.
With this I think that now llvm-link,  lld and the gold plugin should
agree on which symbol is kept.

llvm-svn: 264292
2016-03-24 15:23:01 +00:00

20 lines
280 B
LLVM

$foo = comdat any
$bar = comdat any
define linkonce_odr i32 @f1() comdat($foo) {
ret i32 1
}
define void @f2() comdat($foo) {
call i32 @g2()
ret void
}
define linkonce_odr i32 @g1() comdat($bar) {
ret i32 1
}
define linkonce_odr i32 @g2() comdat($bar) {
ret i32 1
}