llvm-for-llvmta/tools/clang/test/Driver/darwin-sdk-vs-os-version.c

11 lines
428 B
C
Raw Permalink Normal View History

2022-04-25 13:02:35 +02:00
// REQUIRES: system-darwin
// Ensure that we never pick a version that's based on the SDK that's newer than
// the system version:
// RUN: rm -rf %t/SDKs/MacOSX99.99.99.sdk
// RUN: mkdir -p %t/SDKs/MacOSX99.99.99.sdk
// RUN: %clang -target x86_64-apple-darwin -isysroot %t/SDKs/MacOSX99.99.99.sdk %s -### 2>&1 \
// RUN: | FileCheck --check-prefix=CHECK-MACOSX-SYSTEM-VERSION %s
// CHECK-MACOSX-SYSTEM-VERSION-NOT: 99.99.99"