llvm.org GIT mirror llvm / c869887
Add test for LinkModules warning on triple, modified by r203009. Datalayout is already tested. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203468 91177308-0d34-0410-b5e6-96231b3b80d8 JF Bastien 6 years ago
3 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 ; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
1 ; RUN: cat %t.a.err | not FileCheck %s 2>&1 | FileCheck --check-prefix=WARN-A %s
2
3 ; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
4 ; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
5
6 target triple = "e"
7
8 ; CHECK: target triple = "e"
9
10 ; this is a hack to check that llvm-link printed no warnings.
11 ; WARN-A: FileCheck error: '-' is empty.
12
13 ; WARN-B: WARNING: Linking two modules of different target triples: