Skip to content

Commit 47803aa

Browse files
authored
Merge pull request #70933 from apple/egorzhdan/split-overlay-tests
[cxx-interop] Split some modules in tests
2 parents 3a61394 + ef702ad commit 47803aa

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed
Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,18 @@
11
module ConvertibleToBool {
22
header "convertible-to-bool.h"
33
requires cplusplus
4+
export *
5+
}
6+
7+
module CustomIterator {
8+
header "custom-iterator.h"
9+
requires cplusplus
10+
export *
411
}
512

613
module CustomSequence {
7-
header "custom-iterator.h" // TODO: extract into another module
814
header "custom-sequence.h"
915
header "custom-collection.h"
1016
requires cplusplus
17+
export *
1118
}

test/Interop/Cxx/stdlib/overlay/custom-iterator-module-interface.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-ide-test -print-module -module-to-print=CustomSequence -source-filename=x -I %S/Inputs -enable-experimental-cxx-interop | %FileCheck %s
2-
// RUN: %target-swift-ide-test -print-module -module-to-print=CustomSequence -source-filename=x -I %S/Inputs -cxx-interoperability-mode=upcoming-swift | %FileCheck %s
1+
// RUN: %target-swift-ide-test -print-module -module-to-print=CustomIterator -source-filename=x -I %S/Inputs -enable-experimental-cxx-interop | %FileCheck %s
2+
// RUN: %target-swift-ide-test -print-module -module-to-print=CustomIterator -source-filename=x -I %S/Inputs -cxx-interoperability-mode=upcoming-swift | %FileCheck %s
33

44
// CHECK: struct ConstIterator : UnsafeCxxInputIterator {
55
// CHECK: func successor() -> ConstIterator

0 commit comments

Comments
 (0)