Skip to content

Commit cc7a398

Browse files
committed
[Test] Use %target-cpu to generalize test for all architectures
1 parent 9340705 commit cc7a398

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
// RUN: %swift -typecheck -verify -target x86_64-apple-macosx10.10 %s -enable-experimental-feature TypedThrows
1+
// RUN: %swift -typecheck -verify -target %target-cpu-apple-macosx11 %s -enable-experimental-feature TypedThrows
22

33
// REQUIRES: OS=macosx
44

5-
@available(macOS 12, *)
5+
@available(macOS 13, *)
66
enum MyError: Error {
77
case fail
88
}
99

10-
@available(macOS 11, *)
10+
@available(macOS 12, *)
1111
func throwMyErrorBadly() throws(MyError) { }
12-
// expected-error@-1{{'MyError' is only available in macOS 12 or newer}}
12+
// expected-error@-1{{'MyError' is only available in macOS 13 or newer}}
1313

1414

1515

0 commit comments

Comments
 (0)