Files
swift-mirror/test/attr/ApplicationMain/attr_main_struct_available_future.swift
Ben Langmuir fd1875dcfb [test] Move availability tests to later fake OS versions
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.
2024-08-21 11:38:54 -07:00

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() {
}
}