1 ; Testcase to check that functions from a Thumb module can be inlined in an
4 ; RUN: llvm-as %s -o %t1.bc
5 ; RUN: llvm-as %p/Inputs/thumb.ll -o %t2.bc
6 ; RUN: llvm-lto -exported-symbol main \
7 ; RUN: -exported-symbol bar \
10 ; RUN: %t1.bc %t2.bc 2> %t3.out| FileCheck %s
11 ; RUN: FileCheck --allow-empty --input-file %t3.out --check-prefix STDERR %s
13 target triple = "armv7-linux-gnueabihf"
17 ; CHECK-NEXT: .fnstart
18 ; CHECK-NEXT: mov r0, #30
21 ; CHECK-NEXT: .thumb_func
24 declare i32 @foo(i32 %a, i32 %b);
28 %add = call i32 @foo(i32 10, i32 20)
32 ; STDERR-NOT: warning: Linking two modules of different target triples: