2015-12-10 06:44:00 +08:00
|
|
|
; RUN: llvm-link -S %s %p/Inputs/available_externally_over_decl.ll | FileCheck %s
|
|
|
|
|
|
|
|
declare void @f()
|
|
|
|
|
2015-12-11 02:44:26 +08:00
|
|
|
define available_externally void @g() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2015-12-10 06:44:00 +08:00
|
|
|
define void ()* @main() {
|
2015-12-11 02:44:26 +08:00
|
|
|
call void @g()
|
2015-12-10 06:44:00 +08:00
|
|
|
ret void ()* @f
|
|
|
|
}
|
|
|
|
|
2015-12-11 02:44:26 +08:00
|
|
|
; CHECK-DAG: define available_externally void @g() {
|
|
|
|
; CHECK-DAG: define available_externally void @f() {
|