1*0a6a1f1dSLionel Sambuc; REQUIRES: shell 2*0a6a1f1dSLionel Sambuc; RUN: llvm-link %s %S/Inputs/targettriple-a.ll -S -o - 2>%t.a.err | FileCheck %s 3*0a6a1f1dSLionel Sambuc; RUN: (echo foo ;cat %t.a.err) | FileCheck --check-prefix=WARN-A %s 4*0a6a1f1dSLionel Sambuc 5*0a6a1f1dSLionel Sambuc; RUN: llvm-link %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.b.err | FileCheck %s 6*0a6a1f1dSLionel Sambuc; RUN: cat %t.b.err | FileCheck --check-prefix=WARN-B %s 7*0a6a1f1dSLionel Sambuc 8*0a6a1f1dSLionel Sambuc; RUN: llvm-link -suppress-warnings %s %S/Inputs/targettriple-b.ll -S -o - 2>%t.no-warn.err | FileCheck %s 9*0a6a1f1dSLionel Sambuc; RUN: (echo foo ;cat %t.no-warn.err) | FileCheck --check-prefix=WARN-A %s 10*0a6a1f1dSLionel Sambuc 11*0a6a1f1dSLionel Sambuctarget triple = "e" 12*0a6a1f1dSLionel Sambuc 13*0a6a1f1dSLionel Sambuc; CHECK: target triple = "e" 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel Sambuc; WARN-A-NOT: WARNING 16*0a6a1f1dSLionel Sambuc 17*0a6a1f1dSLionel Sambuc; WARN-B: WARNING: Linking two modules of different target triples: 18