File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change
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, *)
You can’t perform that action at this time.
0 commit comments