30 lines · plain
1; RegularLTO testcase2; RUN: llvm-as %s -o %t.o3; RUN: %gold -shared -m elf_x86_64 -o %t2 -plugin %llvmshlibdir/LLVMgold%shlibext \4; RUN: %t.o --plugin-opt=save-temps -upatatino5; RUN: llvm-dis < %t2.0.5.precodegen.bc | FileCheck %s6 7; ThinLTO testcase8; RUN: opt -module-summary %s -o %t.o9; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \10; RUN: --plugin-opt=save-temps \11; RUN: --plugin-opt=thinlto -o %t2 %t.o12; RUN: llvm-dis < %t.o.5.precodegen.bc | FileCheck --check-prefix=CHECKTHIN %s13 14; Check that foo is not internalized15; CHECK: define void @foo16; CHECKTHIN: define dso_local void @foo17 18target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"19target triple = "x86_64-unknown-linux-gnu"20 21module asm ".global patatino"22module asm ".equ patatino, foo"23 24declare void @patatino()25 26define void @foo() {27 call void @patatino()28 ret void29}30