2 ; RUN: opt -module-summary %s -o %t.o
3 ; RUN: mkdir -p %t1 %t2
4 ; RUN: opt -module-summary %p/Inputs/thin1.ll -o %t1/t.coll.o
5 ; RUN: opt -module-summary %p/Inputs/thin2.ll -o %t2/t.coll.o
8 ; RUN: llvm-ar rcs %t.a %t1/t.coll.o %t2/t.coll.o
9 ; RUN: ld.lld %t.o %t.a -o %t
10 ; RUN: llvm-nm %t | FileCheck %s
12 ; Check without a archive symbol table
14 ; RUN: llvm-ar rcS %t.a %t1/t.coll.o %t2/t.coll.o
15 ; RUN: ld.lld %t.o %t.a -o %t
16 ; RUN: llvm-nm %t | FileCheck %s
18 ; Check we handle this case correctly even in presence of --whole-archive.
19 ; RUN: ld.lld %t.o --whole-archive %t.a -o %t
20 ; RUN: llvm-nm %t | FileCheck %s
26 target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
27 target triple = "x86_64-scei-ps4"
29 define i32 @_start() {
31 %call = call i32 @foo(i32 23)
32 %call1 = call i32 @blah(i32 37)
36 declare i32 @foo(i32) #1
37 declare i32 @blah(i32) #1