forked from OSchip/llvm-project
25 lines
324 B
LLVM
25 lines
324 B
LLVM
; RUN: opt < %s -globalopt -S | FileCheck %s
|
|
|
|
define internal void @f() {
|
|
; CHECK-NOT: @f(
|
|
; CHECK: define void @a
|
|
ret void
|
|
}
|
|
|
|
@a = alias void ()* @f
|
|
|
|
define void @g() {
|
|
call void() @a()
|
|
ret void
|
|
}
|
|
|
|
@b = internal alias void ()* @g
|
|
; CHECK-NOT: @b
|
|
|
|
define void @h() {
|
|
call void() @b()
|
|
; CHECK: call void @g
|
|
ret void
|
|
}
|
|
|