mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
181a289256
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186271 91177308-0d34-0410-b5e6-96231b3b80d8
25 lines
325 B
LLVM
25 lines
325 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 = alias internal void ()* @g
|
|
; CHECK-NOT: @b
|
|
|
|
define void @h() {
|
|
call void()* @b()
|
|
; CHECK: call void @g
|
|
ret void
|
|
}
|
|
|