llvm-mirror/test/Linker/pr27044.ll
Rafael Espindola e8152e3f49 Fix resolution of linkonce symbols in comdats.
After comdat processing, the symbols still go through regular symbol
resolution.

We were not doing it for linkonce symbols since they are lazy linked.

This fixes pr27044.

llvm-svn: 264288
2016-03-24 14:58:44 +00:00

9 lines
169 B
LLVM

; RUN: llvm-link -S %s %p/Inputs/pr27044.ll -o - | FileCheck %s
; CHECK: define i32 @f1() {
; CHECK: define void @f2() comdat($foo) {
define i32 @f1() {
ret i32 0
}