blob: 06ec2933e04918facdbc4dbd7f9e8021461deb19 [file] [log] [blame]
Akira Hatanakaac844bf2015-02-13 00:40:41 +00001; RUN: llvm-link %s %S/Inputs/apple-version/1.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK1
2; RUN: cat %t.err | FileCheck --check-prefix=WARN1 --allow-empty %s
3; RUN: llvm-link %s %S/Inputs/apple-version/2.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK2
4; RUN: cat %t.err | FileCheck --check-prefix=WARN2 --allow-empty %s
5; RUN: llvm-link %s %S/Inputs/apple-version/3.ll -S -o /dev/null 2>%t.err
6; RUN: cat %t.err | FileCheck --check-prefix=WARN3 %s
7; RUN: llvm-link %s %S/Inputs/apple-version/4.ll -S -o /dev/null 2>%t.err
8; RUN: cat %t.err | FileCheck --check-prefix=WARN4 --allow-empty %s
9
10; Check that the triple that has the larger version number is chosen and no
11; warnings are issued when the Triples differ only in version numbers.
12
13; CHECK1: target triple = "x86_64-apple-macosx10.10.0"
Jonas Devlieghere22942f72018-04-18 14:41:47 +000014; WARN1-NOT: warning
Akira Hatanakaac844bf2015-02-13 00:40:41 +000015; CHECK2: target triple = "x86_64-apple-macosx10.9.0"
Jonas Devlieghere22942f72018-04-18 14:41:47 +000016; WARN2-NOT: warning
Akira Hatanakaac844bf2015-02-13 00:40:41 +000017
18; i386 and x86_64 map to different ArchType enums.
Jonas Devlieghere22942f72018-04-18 14:41:47 +000019; WARN3: warning: Linking two modules of different target triples
Akira Hatanakaac844bf2015-02-13 00:40:41 +000020
21; x86_64h and x86_64 map to the same ArchType enum.
Jonas Devlieghere22942f72018-04-18 14:41:47 +000022; WARN4-NOT: warning
Akira Hatanakaac844bf2015-02-13 00:40:41 +000023
24target triple = "x86_64-apple-macosx10.9.0"