Files
swift-mirror/test/attr/attr_availability_swift_deserialize.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

15 lines
631 B
Swift

// RUN: rm -rf %t && mkdir -p %t
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/OldAndNew.swiftmodule -module-name OldAndNew %S/Inputs/OldAndNew.swift
// RUN: not %target-swift-frontend -typecheck -I %t -swift-version 3 %s 2>&1 | %FileCheck -check-prefix THREE %s
// RUN: not %target-swift-frontend -typecheck -I %t -swift-version 4 %s 2>&1 | %FileCheck -check-prefix FOUR %s
import OldAndNew
// THREE: 'fourOnly()' is unavailable
// THREE: 'fourOnly()' was introduced in Swift 4.0
let _ = fourOnly()
// FOUR: 'threeOnly()' is unavailable
// FOUR: 'threeOnly()' was obsoleted in Swift 4.0
let _ = threeOnly()