mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
10.50 was once greater than any real macOS version, but now it compares less than real released versions, which makes these tests depend on the deployment target unnecessarily. Update these tests to use even larger numbers to hopefully keep them independent a little longer.
14 lines
271 B
Swift
14 lines
271 B
Swift
// RUN: %target-swift-frontend -typecheck -parse-as-library -verify %s
|
|
|
|
// REQUIRES: OS=macosx
|
|
|
|
@main // expected-error {{'main()' is only available in macOS 99 or newer}}
|
|
@available(OSX 10.0, *)
|
|
struct EntryPoint {
|
|
@available(OSX 99, *)
|
|
static func main() {
|
|
}
|
|
}
|
|
|
|
|