11 lines · c
1// REQUIRES: system-darwin2 3// Ensure that we never pick a version that's based on the SDK that's newer than4// the system version:5// RUN: rm -rf %t/SDKs/MacOSX99.99.99.sdk6// RUN: mkdir -p %t/SDKs/MacOSX99.99.99.sdk7// RUN: %clang -target x86_64-apple-darwin -isysroot %t/SDKs/MacOSX99.99.99.sdk %s -### 2>&1 \8// RUN: | FileCheck --check-prefix=CHECK-MACOSX-SYSTEM-VERSION %s9 10// CHECK-MACOSX-SYSTEM-VERSION-NOT: 99.99.99"11