1 // REQUIRES: system-darwin 2 3 // Ensure that we never pick a version that's based on the SDK that's newer than 4 // the system version: 5 // RUN: rm -rf %t/SDKs/MacOSX99.99.99.sdk 6 // RUN: mkdir -p %t/SDKs/MacOSX99.99.99.sdk 7 // 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 %s 9 10 // CHECK-MACOSX-SYSTEM-VERSION-NOT: 99.99.99" 11