Skip to content

Commit 0545277

Browse files
committed
[embedded] Add test/embedded/availability-macos.swift
1 parent 2446923 commit 0545277

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Checks that in Embedded Swift, we allow using stdlib types even when they
2+
// have declared availability to be higher than our macOS deployment target.
3+
4+
// RUN: %target-typecheck-verify-swift -target arm64-apple-macos14 -enable-experimental-feature Embedded -enable-experimental-feature Span
5+
// RUN: %target-typecheck-verify-swift -target arm64-apple-macos15 -enable-experimental-feature Embedded -enable-experimental-feature Span
6+
7+
// REQUIRES: swift_in_compiler
8+
// REQUIRES: swift_feature_Embedded
9+
// REQUIRES: swift_feature_Span
10+
// REQUIRES: OS=macosx
11+
12+
func f(_: Span<Int>) { } // Span is @available(SwiftStdlib 6.1, *)
13+
func g(_: Int128) { } // Int128 is @available(SwiftStdlib 6.0, *)

0 commit comments

Comments
 (0)