summaryrefslogtreecommitdiffstats
path: root/llvm/test/ThinLTO/X86/Inputs/section.ll
blob: 4f4ea91c9867afed283cad80c4ccc02514bffc52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
; 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
}
OpenPOWER on IntegriCloud