2 ; RUN: llvm-as %s -o %t.o
3 ; RUN: %gold -shared -m elf_x86_64 -o %t2 -plugin %llvmshlibdir/LLVMgold%shlibext \
4 ; RUN: %t.o --plugin-opt=save-temps -upatatino
5 ; RUN: llvm-dis < %t2.0.5.precodegen.bc | FileCheck %s
8 ; RUN: opt -module-summary %s -o %t.o
9 ; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
10 ; RUN: --plugin-opt=save-temps \
11 ; RUN: --plugin-opt=thinlto -o %t2 %t.o
12 ; RUN: llvm-dis < %t.o.5.precodegen.bc | FileCheck --check-prefix=CHECKTHIN %s
14 ; Check that foo is not internalized
15 ; CHECK: define void @foo
16 ; CHECKTHIN: define dso_local void @foo
18 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
19 target triple = "x86_64-unknown-linux-gnu"
21 module asm ".global patatino"
22 module asm ".equ patatino, foo"
24 declare void @patatino()