2009-12-08 18:10:20 +08:00
|
|
|
; RUN: opt < %s -globalopt -S | FileCheck %s
|
2009-02-15 17:56:08 +08:00
|
|
|
|
|
|
|
define internal void @f() {
|
2009-12-08 18:10:20 +08:00
|
|
|
; CHECK-NOT: @f
|
|
|
|
; CHECK: define void @a
|
2009-02-15 17:56:08 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
|
|
|
@a = alias void ()* @f
|
|
|
|
|
|
|
|
define void @g() {
|
|
|
|
call void()* @a()
|
|
|
|
ret void
|
|
|
|
}
|
2009-12-08 18:10:20 +08:00
|
|
|
|
|
|
|
@b = alias internal void ()* @g
|
|
|
|
; CHECK-NOT: @b
|
|
|
|
|
|
|
|
define void @h() {
|
|
|
|
call void()* @b()
|
|
|
|
; CHECK: call void @g
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|