1 ; Do setup work for all below tests: generate bitcode and combined index
2 ; RUN: opt -module-summary %s -o %t.bc
3 ; RUN: opt -module-summary %p/Inputs/inlineasm.ll -o %t2.bc
4 ; RUN: llvm-lto -thinlto -o %t3 %t.bc %t2.bc
6 ; Attempt the import now, ensure below that file containing inline assembly
7 ; is not imported from. Otherwise we would need to promote its local variable
8 ; used in the inline assembly, which would not see the rename.
9 ; RUN: opt -function-import -summary-file %t3.thinlto.bc %t.bc -S 2>&1 | FileCheck %s
11 define i32 @main() #0 {
13 %f = alloca i64, align 8
14 call void @foo(i64* %f)
18 ; CHECK: declare void @foo(i64*)
19 declare void @foo(i64*) #1