Imported Upstream version 5.18.0.246

Former-commit-id: 0c7ce5b1a7851e13f22acfd379b7f9fb304e4833
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-01-23 08:21:40 +00:00
parent a7724cd563
commit 279aa8f685
28482 changed files with 3866972 additions and 44 deletions

View File

@@ -0,0 +1,24 @@
; 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"
; WARN1-NOT: WARNING
; CHECK2: target triple = "x86_64-apple-macosx10.9.0"
; WARN2-NOT: WARNING
; i386 and x86_64 map to different ArchType enums.
; WARN3: WARNING: Linking two modules of different target triples
; x86_64h and x86_64 map to the same ArchType enum.
; WARN4-NOT: WARNING
target triple = "x86_64-apple-macosx10.9.0"