
Test updates were performed using: https://gist.github.com/nikic/98357b71fd67756b0f064c9517b62a34 These are only the test updates where the test passed without further modification (which is almost all of them, as the backend is largely pointer-type agnostic).
21 lines
364 B
LLVM
21 lines
364 B
LLVM
; RUN: llc -mtriple=x86_64-unknown-linux-gnu %s -o - | FileCheck %s
|
|
|
|
@zed = external hidden constant i32
|
|
|
|
define available_externally hidden void @baz() {
|
|
ret void
|
|
}
|
|
|
|
define hidden void @foo() nounwind {
|
|
entry:
|
|
call void @bar(ptr @zed)
|
|
call void @baz()
|
|
ret void
|
|
}
|
|
|
|
declare hidden void @bar(ptr)
|
|
|
|
;CHECK: .hidden zed
|
|
;CHECK: .hidden baz
|
|
;CHECK: .hidden bar
|