Files
swift-mirror/test/Serialization/target-too-new.swift
Slava Pestov 79b24fa7d1 Update availability tests to be independent of the actual deployment target
Use fictional version numbers in the 10.50..10.99 range.
2016-01-13 19:27:26 -08:00

12 lines
619 B
Swift

// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.50 -emit-module -parse-stdlib %S/../Inputs/empty.swift -o %t
// RUN: not %target-swift-frontend -I %t -parse %s 2>&1 | FileCheck %s
// RUN: %target-swift-frontend -I %t -parse %s -disable-target-os-checking
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.50 -I %t -parse %s
// RUN: %target-swift-frontend -target x86_64-apple-macosx10.50.1 -I %t -parse %s
// REQUIRES: OS=macosx
// CHECK: :[[@LINE+1]]:8: error: module file's minimum deployment target is OS X v10.50: {{.*}}empty.swiftmodule{{$}}
import empty