blob: 7c713709a5600a72ab296ee64ed03543e5a712b8 [file] [log] [blame]
// 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 -parse -I %t -swift-version 3 %s 2>&1 | %FileCheck -check-prefix THREE %s
// RUN: not %target-swift-frontend -parse -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()