3 ; RUN: llvm-as %s -o %t.o
4 ; RUN: llvm-as %S/Inputs/defsym-bar.ll -o %t1.o
5 ; RUN: ld.lld %t.o %t1.o -shared -o %t.so -defsym=bar2=bar3 -save-temps
6 ; RUN: llvm-readelf --symbols %t.so.lto.o | FileCheck --check-prefix=OBJ %s
7 ; RUN: llvm-objdump -d %t.so | FileCheck %s
10 ; RUN: opt -module-summary %s -o %t.o
11 ; RUN: opt -module-summary %S/Inputs/defsym-bar.ll -o %t1.o
12 ; RUN: ld.lld %t.o %t1.o -shared -o %t2.so -defsym=bar2=bar3 -save-temps
13 ; RUN: llvm-readelf --symbols %t2.so1.lto.o | FileCheck --check-prefix=OBJ %s
14 ; RUN: llvm-objdump -d %t2.so | FileCheck %s
18 ; Call to bar2() should not be inlined and should be routed to bar3()
19 ; Symbol bar3 should not be eliminated
22 ; CHECK-NEXT: pushq %rax
24 ; CHECK-NEXT: callq{{.*}}<bar3>
25 ; CHECK-NEXT: popq %rax
28 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
29 target triple = "x86_64-unknown-linux-gnu"