Skip to content

Commit f758e21

Browse files
committed
Sema: Add requires to IOI + embedded code using the stdlib
1 parent efbc938 commit f758e21

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

test/Sema/access-level-import-embedded.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,19 @@
33
// RUN: %empty-directory(%t)
44
// RUN: %target-swift-frontend -emit-module -o %t/indirects.swiftmodule \
55
// RUN: %S/Inputs/implementation-only-imports/indirects.swift \
6-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
6+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
77
// RUN: -enable-experimental-feature Embedded
88
// RUN: %target-swift-frontend -emit-module -o %t/directs.swiftmodule -I %t \
99
// RUN: %S/Inputs/implementation-only-imports/directs.swift \
10-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
10+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
1111
// RUN: -enable-experimental-feature Embedded
1212

1313
// RUN: %target-swift-frontend -typecheck -verify %s -I %t \
14-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
14+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
1515
// RUN: -enable-experimental-feature Embedded
1616

1717
// REQUIRES: swift_feature_Embedded
18+
// REQUIRES: embedded_stdlib_cross_compiling
1819

1920
@_implementationOnly internal import directs
2021
// expected-warning @-1 {{using '@_implementationOnly' without enabling library evolution for 'main' may lead to instability during execution}}

test/Sema/implementation-only-import-embedded.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
// RUN: %empty-directory(%t)
44
// RUN: %target-swift-frontend -emit-module -o %t/indirects.swiftmodule \
55
// RUN: %S/Inputs/implementation-only-imports/indirects.swift \
6-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
6+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
77
// RUN: -enable-experimental-feature Embedded
88
// RUN: %target-swift-frontend -emit-module -o %t/directs.swiftmodule -I %t\
99
// RUN: %S/Inputs/implementation-only-imports/directs.swift \
10-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
10+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
1111
// RUN: -enable-experimental-feature Embedded
1212

1313
// RUN: %target-swift-frontend -typecheck -verify %s -I %t \
14-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
14+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
1515
// RUN: -define-availability "availMacro:macOS 26.0, iOS 26.0" \
1616
// RUN: -enable-experimental-feature Embedded
1717

1818
// REQUIRES: swift_feature_Embedded
19+
// REQUIRES: embedded_stdlib_cross_compiling
1920

2021
@_implementationOnly import directs
2122
// expected-warning @-1 {{using '@_implementationOnly' without enabling library evolution for 'main' may lead to instability during execution}}

test/embedded/implementation-only-import-build.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
// RUN: %empty-directory(%t)
22
// RUN: %target-swift-frontend -emit-module -o %t/indirects.swiftmodule \
33
// RUN: %S/../Sema/Inputs/implementation-only-imports/indirects.swift \
4-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
4+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
55
// RUN: -enable-experimental-feature Embedded
66
// RUN: %target-swift-frontend -emit-module -o %t/directs.swiftmodule -I %t\
77
// RUN: %S/../Sema/Inputs/implementation-only-imports/directs.swift \
8-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
8+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
99
// RUN: -enable-experimental-feature Embedded
1010

1111
// RUN: %target-swift-frontend -emit-sil %s -I %t \
12-
// RUN: -swift-version 5 -target arm64-apple-macosx15.0 \
12+
// RUN: -swift-version 5 -target arm64-apple-none-macho \
1313
// RUN: -enable-experimental-feature Embedded
1414

1515
// REQUIRES: swift_feature_Embedded
16+
// REQUIRES: embedded_stdlib_cross_compiling
1617

1718
@_implementationOnly import directs
1819
import indirects

0 commit comments

Comments
 (0)