25 lines · plain
1; RUN: llvm-link %s %S/Inputs/apple-version/1.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK12; RUN: cat %t.err | FileCheck --check-prefix=WARN1 --allow-empty %s3; RUN: llvm-link %s %S/Inputs/apple-version/2.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK24; RUN: cat %t.err | FileCheck --check-prefix=WARN2 --allow-empty %s5; RUN: llvm-link %s %S/Inputs/apple-version/3.ll -S -o /dev/null 2>%t.err6; RUN: cat %t.err | FileCheck --check-prefix=WARN3 %s7; RUN: llvm-link %s %S/Inputs/apple-version/4.ll -S -o /dev/null 2>%t.err8; RUN: cat %t.err | FileCheck --check-prefix=WARN4 --allow-empty %s9 10; Check that the triple that has the larger version number is chosen and no11; warnings are issued when the Triples differ only in version numbers.12 13; CHECK1: target triple = "x86_64-apple-macosx10.10.0"14; WARN1-NOT: warning15; CHECK2: target triple = "x86_64-apple-macosx10.9.0"16; WARN2-NOT: warning17 18; i386 and x86_64 map to different ArchType enums.19; WARN3: warning: Linking two modules of different target triples20 21; x86_64h and x86_64 map to the same ArchType enum.22; WARN4-NOT: warning23 24target triple = "x86_64-apple-macosx10.9.0"25