xref: /aosp_15_r20/external/llvm/test/ThinLTO/X86/Inputs/section.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; An internal global variable that can't be renamed because it has a section
2*9880d681SAndroid Build Coastguard Worker@var_with_section = internal global i32 0, section "some_section"
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker; @reference_gv_with_section() can't be imported
5*9880d681SAndroid Build Coastguard Workerdefine i32 @reference_gv_with_section() {
6*9880d681SAndroid Build Coastguard Worker    %res = load i32, i32* @var_with_section
7*9880d681SAndroid Build Coastguard Worker    ret i32 %res
8*9880d681SAndroid Build Coastguard Worker}
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker; canary
11*9880d681SAndroid Build Coastguard Workerdefine void @foo() {
12*9880d681SAndroid Build Coastguard Worker    ret void
13*9880d681SAndroid Build Coastguard Worker}
14