Skip to content

Commit a97da39

Browse files
committed
only run transitive-std-core-import.swift on new libc++
1 parent 8d4e81c commit a97da39

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/Interop/Cxx/swiftify-import/transitive-std-core-import.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
// REQUIRES: swift_feature_SafeInteropWrappers
2+
// REQUIRES: OS=macosx
23

4+
// Don't run this test with libc++ versions 17-19, when the top-level std module was split into multiple top-level modules.
35
// RUN: %empty-directory(%t)
4-
// RUN: split-file %s %t
5-
// RUN: %target-swift-frontend -emit-module -plugin-path %swift-plugin-dir -o %t/Test.swiftmodule -I %t/Inputs -enable-experimental-feature SafeInteropWrappers -strict-memory-safety -warnings-as-errors -Xcc -Werror %t/test.swift -cxx-interoperability-mode=default -Xcc -std=c++20
6+
// RUN: %target-clangxx %S/../stdlib/Inputs/check-libcxx-version.cpp -o %t/check-libcxx-version
7+
// RUN: %target-codesign %t/check-libcxx-version
8+
9+
// RUN: %target-run %t/check-libcxx-version || split-file %s %t
10+
// RUN: %target-run %t/check-libcxx-version || %target-swift-frontend -emit-module -plugin-path %swift-plugin-dir -o %t/Test.swiftmodule -I %t/Inputs -enable-experimental-feature SafeInteropWrappers -strict-memory-safety -warnings-as-errors -Xcc -Werror %t/test.swift -cxx-interoperability-mode=default -Xcc -std=c++20
611

712
// Test that implicit imports can refer to std_core etc., even though Swift source code may not.
813

0 commit comments

Comments
 (0)