mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
- watchOS 12 -> 26 - visionOS 3 -> 26 - macos 16 -> 26 - iOS 19 -> 26 - tvOS 19 -> 26 The version numbers for `if #available(...)` queries are intentionally not re-mapped.
22 lines
1.1 KiB
Swift
22 lines
1.1 KiB
Swift
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck -verify -I %S/Inputs/custom-modules -target %target-cpu-apple-macosx10.15 -application-extension %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
import MacOSVersionCanonicalization
|
|
|
|
FunctionIntroducedIn10_16AppExt()
|
|
// expected-error@-1 {{'FunctionIntroducedIn10_16AppExt()' is only available in application extensions for macOS 11.0 or newer}}
|
|
// expected-note@-2 {{add 'if #available' version check}}
|
|
|
|
FunctionIntroducedIn11_0AppExt()
|
|
// expected-error@-1 {{'FunctionIntroducedIn11_0AppExt()' is only available in application extensions for macOS 11.0 or newer}}
|
|
// expected-note@-2 {{add 'if #available' version check}}
|
|
|
|
FunctionIntroducedIn16_0AppExt()
|
|
// expected-error@-1 {{'FunctionIntroducedIn16_0AppExt()' is only available in application extensions for macOS 26.0 or newer}}
|
|
// expected-note@-2 {{add 'if #available' version check}}
|
|
|
|
FunctionIntroducedIn26_0AppExt()
|
|
// expected-error@-1 {{'FunctionIntroducedIn26_0AppExt()' is only available in application extensions for macOS 26.0 or newer}}
|
|
// expected-note@-2 {{add 'if #available' version check}}
|