2011-01-28 11:57:55 +08:00
|
|
|
; RUN: llc -mtriple=x86_64-unknown-linux-gnu %s -o - | FileCheck %s
|
2011-01-28 11:20:10 +08:00
|
|
|
|
2011-04-05 23:51:32 +08:00
|
|
|
@zed = external hidden constant i32
|
|
|
|
|
2015-07-13 21:55:18 +08:00
|
|
|
define available_externally hidden void @baz() {
|
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2011-01-28 11:20:10 +08:00
|
|
|
define hidden void @foo() nounwind {
|
|
|
|
entry:
|
2011-04-05 23:51:32 +08:00
|
|
|
call void @bar(i32* @zed)
|
2015-07-13 21:55:18 +08:00
|
|
|
call void @baz()
|
2011-01-28 11:20:10 +08:00
|
|
|
ret void
|
|
|
|
}
|
|
|
|
|
2011-04-05 23:51:32 +08:00
|
|
|
declare hidden void @bar(i32*)
|
2011-01-28 11:20:10 +08:00
|
|
|
|
2011-04-05 23:51:32 +08:00
|
|
|
;CHECK: .hidden zed
|
2015-07-13 21:55:18 +08:00
|
|
|
;CHECK: .hidden baz
|
2011-01-28 11:20:10 +08:00
|
|
|
;CHECK: .hidden bar
|