Files
clang-p2996/llvm/test/CodeGen/X86/visibility2.ll
Nikita Popov 2f448bf509 [X86] Migrate tests to use opaque pointers (NFC)
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).
2022-06-22 14:38:25 +02:00

19 lines
497 B
LLVM

; This test case ensures that when the visibility of a global declaration is
; emitted they are not treated as definitions. Test case for r132825.
; Fixes <rdar://problem/9429892>.
;
; RUN: llc -mtriple=x86_64-apple-darwin %s -o - | FileCheck %s
@foo_private_extern_str = external hidden global ptr
define void @foo1() nounwind ssp {
entry:
%tmp = load ptr, ptr @foo_private_extern_str, align 8
call void @foo3(ptr %tmp)
ret void
}
declare void @foo3(ptr)
; CHECK-NOT: .private_extern