diff options
Diffstat (limited to 'llvm/test/ThinLTO/X86/Inputs/section.ll')
-rw-r--r-- | llvm/test/ThinLTO/X86/Inputs/section.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/test/ThinLTO/X86/Inputs/section.ll b/llvm/test/ThinLTO/X86/Inputs/section.ll new file mode 100644 index 00000000000..4f4ea91c986 --- /dev/null +++ b/llvm/test/ThinLTO/X86/Inputs/section.ll @@ -0,0 +1,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 +} |