xref: /llvm-project/llvm/test/ThinLTO/X86/Inputs/section.ll (revision d5d3eb16b7ab72529c83dacb2889811491e48909)
1; An internal global variable that can't be renamed because it has a section
2target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
3@var_with_section = internal global i32 0, section "some_section"
4
5; @reference_gv_with_section() can't be imported
6define i32 @reference_gv_with_section() {
7    %res = load i32, ptr @var_with_section
8    ret i32 %res
9}
10
11; canary
12define void @foo() {
13    ret void
14}
15