A target argument should be provided to avoid failures on non-Darwin
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@320238
91177308-0d34-0410-b5e6-
96231b3b80d8
// CHECK-VERSION-WATCHOS-TARGET: "x86_64-apple-watchos4.0.0-simulator"
// RUN: env MACOSX_DEPLOYMENT_TARGET=1000.1000 \
-// RUN: %clang -c %s -### 2>&1 | \
+// RUN: %clang -target x86_64-apple-darwin -c %s -### 2>&1 | \
// RUN: FileCheck --check-prefix=CHECK-VERSION-INVALID-ENV %s
// CHECK-VERSION-INVALID-ENV: invalid version number in 'MACOSX_DEPLOYMENT_TARGET=1000.1000'