1 ; RUN: opt -module-summary %s -o %t1.o
2 ; RUN: opt -module-summary -o %t2.o %S/Inputs/not-prevailing.ll
3 ; RUN: llvm-lto2 run -o %t3.o %t1.o %t2.o -r %t1.o,foo,x -r %t1.o,zed,px -r %t1.o,bar,x \
4 ; RUN: -r %t2.o,bar,x -save-temps
6 ; Check that 'foo' and 'bar' were not inlined.
8 ; CHECK-NEXT: {{.*}} pushq %rbx
9 ; CHECK-NEXT: {{.*}} callq 0 <zed+0x6>
10 ; CHECK-NEXT: {{.*}} movl %eax, %ebx
11 ; CHECK-NEXT: {{.*}} callq 0 <zed+0xd>
12 ; CHECK-NEXT: {{.*}} movl %ebx, %eax
13 ; CHECK-NEXT: {{.*}} popq %rbx
14 ; CHECK-NEXT: {{.*}} retq
16 ; RUN: llvm-objdump -d %t3.o.1 | FileCheck %s
17 ; RUN: llvm-readelf --symbols %t3.o.1 | FileCheck %s --check-prefix=SYMBOLS
19 ; Check that 'foo' and 'bar' produced as undefined.
20 ; SYMBOLS: NOTYPE GLOBAL DEFAULT UND bar
21 ; SYMBOLS: NOTYPE GLOBAL DEFAULT UND foo
22 ; SYMBOLS: FUNC GLOBAL DEFAULT 2 zed
24 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
25 target triple = "x86_64-unknown-linux-gnu"
28 define weak i32 @foo() comdat {
35 %1 = tail call i32 @foo()