mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-19 10:15:00 +00:00

Differential Revision: http://reviews.llvm.org/D18298 From: Mehdi Amini <mehdi.amini@apple.com> git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@267646 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
344 B
LLVM
14 lines
344 B
LLVM
; An internal global variable that can't be renamed because it has a section
|
|
@var_with_section = internal global i32 0, section "some_section"
|
|
|
|
; @reference_gv_with_section() can't be imported
|
|
define i32 @reference_gv_with_section() {
|
|
%res = load i32, i32* @var_with_section
|
|
ret i32 %res
|
|
}
|
|
|
|
; canary
|
|
define void @foo() {
|
|
ret void
|
|
}
|