1// RUN: %clang -target x86_64-apple-ios13.2-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c %s -### 2>&1 \
2// RUN:   | FileCheck %s
3// RUN: %clang -target x86_64-apple-ios13.2.0-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c %s -### 2>&1 \
4// RUN:   | FileCheck %s
5// RUN: %clang -target x86_64-apple-ios13.2-macabi -isysroot %S/Inputs/MacOSX10.14.sdk -c %s -### 2>&1 \
6// RUN:   | FileCheck --check-prefix=FALLBACK-DEFAULT %s
7// RUN: %clang -target x86_64-apple-ios12.99.99-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c %s -### 2>&1 \
8// RUN:   | FileCheck --check-prefix=FALLBACK-DEFAULT %s
9// RUN: %clang -target x86_64-apple-ios-macabi -isysroot %S/Inputs/MacOSX10.15.versioned.sdk -c %s -### 2>&1 \
10// RUN:   | FileCheck --check-prefix=FALLBACK-DEFAULT %s
11
12// CHECK: -fobjc-runtime=macosx-10.15.1
13// FALLBACK-DEFAULT: -fobjc-runtime=macosx-10.15
14