We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
%target-cpu
1 parent 9340705 commit cc7a398Copy full SHA for cc7a398
test/attr/typed_throws_availability_osx.swift
@@ -1,15 +1,15 @@
1
-// RUN: %swift -typecheck -verify -target x86_64-apple-macosx10.10 %s -enable-experimental-feature TypedThrows
+// RUN: %swift -typecheck -verify -target %target-cpu-apple-macosx11 %s -enable-experimental-feature TypedThrows
2
3
// REQUIRES: OS=macosx
4
5
-@available(macOS 12, *)
+@available(macOS 13, *)
6
enum MyError: Error {
7
case fail
8
}
9
10
-@available(macOS 11, *)
+@available(macOS 12, *)
11
func throwMyErrorBadly() throws(MyError) { }
12
-// expected-error@-1{{'MyError' is only available in macOS 12 or newer}}
+// expected-error@-1{{'MyError' is only available in macOS 13 or newer}}
13
14
15
0 commit comments