mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-05 10:17:36 +00:00
6c4fc98afa
Fix the condition for when the new global takes over the name of the existing one to be the negation of the condition for the new global to get internal linkage. llvm-svn: 258355
25 lines
590 B
LLVM
25 lines
590 B
LLVM
; RUN: llvm-link %s %S/Inputs/alias-2.ll -S -o - | FileCheck %s
|
|
; RUN: llvm-link %S/Inputs/alias-2.ll %s -S -o - | FileCheck %s
|
|
|
|
; Test the fix for PR26152, where A from the second module is
|
|
; erroneously renamed to A.1 and not linked to the declaration from
|
|
; the first module
|
|
|
|
@C = alias void (), void ()* @A
|
|
|
|
define void @D() {
|
|
call void @C()
|
|
ret void
|
|
}
|
|
|
|
define void @A() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK-DAG: @C = alias void (), void ()* @A
|
|
; CHECK-DAG: define void @B()
|
|
; CHECK-DAG: call void @A()
|
|
; CHECK-DAG: define void @D()
|
|
; CHECK-DAG: call void @C()
|
|
; CHECK-DAG: define void @A()
|