Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit c869887

Browse files
committed
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
1 parent 6e9eeab commit c869887

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

test/Linker/Inputs/targettriple-a.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target triple = "e"

test/Linker/Inputs/targettriple-b.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target triple = "E"

test/Linker/targettriple.ll

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s
2+
; RUN: cat %t.a.err | not FileCheck %s 2>&1 | FileCheck --check-prefix=WARN-A %s
3+
4+
; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s
5+
; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s
6+
7+
target triple = "e"
8+
9+
; CHECK: target triple = "e"
10+
11+
; this is a hack to check that llvm-link printed no warnings.
12+
; WARN-A: FileCheck error: '-' is empty.
13+
14+
; WARN-B: WARNING: Linking two modules of different target triples:

0 commit comments

Comments
 (0)