2015-02-13 08:40:41 +08:00
|
|
|
; RUN: llvm-link %s %S/Inputs/apple-version/1.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK1
|
|
|
|
; RUN: cat %t.err | FileCheck --check-prefix=WARN1 --allow-empty %s
|
|
|
|
; RUN: llvm-link %s %S/Inputs/apple-version/2.ll -S -o - 2>%t.err | FileCheck %s -check-prefix=CHECK2
|
|
|
|
; RUN: cat %t.err | FileCheck --check-prefix=WARN2 --allow-empty %s
|
|
|
|
; RUN: llvm-link %s %S/Inputs/apple-version/3.ll -S -o /dev/null 2>%t.err
|
|
|
|
; RUN: cat %t.err | FileCheck --check-prefix=WARN3 %s
|
|
|
|
; RUN: llvm-link %s %S/Inputs/apple-version/4.ll -S -o /dev/null 2>%t.err
|
|
|
|
; RUN: cat %t.err | FileCheck --check-prefix=WARN4 --allow-empty %s
|
|
|
|
|
|
|
|
; Check that the triple that has the larger version number is chosen and no
|
|
|
|
; warnings are issued when the Triples differ only in version numbers.
|
|
|
|
|
|
|
|
; CHECK1: target triple = "x86_64-apple-macosx10.10.0"
|
2018-04-18 22:41:47 +08:00
|
|
|
; WARN1-NOT: warning
|
2015-02-13 08:40:41 +08:00
|
|
|
; CHECK2: target triple = "x86_64-apple-macosx10.9.0"
|
2018-04-18 22:41:47 +08:00
|
|
|
; WARN2-NOT: warning
|
2015-02-13 08:40:41 +08:00
|
|
|
|
|
|
|
; i386 and x86_64 map to different ArchType enums.
|
2018-04-18 22:41:47 +08:00
|
|
|
; WARN3: warning: Linking two modules of different target triples
|
2015-02-13 08:40:41 +08:00
|
|
|
|
|
|
|
; x86_64h and x86_64 map to the same ArchType enum.
|
2018-04-18 22:41:47 +08:00
|
|
|
; WARN4-NOT: warning
|
2015-02-13 08:40:41 +08:00
|
|
|
|
|
|
|
target triple = "x86_64-apple-macosx10.9.0"
|