Skip to content

Commit 9b1292d

Browse files
authored
Merge pull request #83324 from egorzhdan/egorzhdan/test-move-only-simplify
[cxx-interop] Simplify test for move-only types
2 parents 0334abd + e070556 commit 9b1292d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

test/Interop/Cxx/class/move-only/move-only-cxx-value-type.swift

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=upcoming-swift)
2-
// RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=upcoming-swift -D HAS_NONCOPYABLE_GENERICS)
32
// RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=swift-5.9 -O)
43
// RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=swift-6 -O)
5-
// RUN: %target-run-simple-swift(-I %S/Inputs/ -cxx-interoperability-mode=swift-6 -O -D HAS_NONCOPYABLE_GENERICS)
64

75
// REQUIRES: executable_test
86

@@ -29,12 +27,10 @@ MoveOnlyCxxValueType.test("Test derived move only type member access") {
2927
var k = c.method(-3)
3028
expectEqual(k, -6)
3129
expectEqual(c.method(1), 2)
32-
#if HAS_NONCOPYABLE_GENERICS
3330
k = c.x
3431
expectEqual(k, 2)
3532
c.x = 11
3633
expectEqual(c.x, 11)
37-
#endif
3834
k = c.mutMethod(-13)
3935
expectEqual(k, -13)
4036
}
@@ -60,7 +56,6 @@ MoveOnlyCxxValueType.test("Test move only field access in holder") {
6056
expectEqual(c.x.x, 5)
6157
}
6258

63-
#if HAS_NONCOPYABLE_GENERICS
6459
MoveOnlyCxxValueType.test("Test move only field access in derived holder") {
6560
var c = NonCopyableHolderDerivedDerived(-11)
6661
var k = borrowNC(c.x)
@@ -74,6 +69,5 @@ MoveOnlyCxxValueType.test("Test move only field access in derived holder") {
7469
c.x.mutMethod(5)
7570
expectEqual(c.x.x, 5)
7671
}
77-
#endif
7872

7973
runAllTests()

0 commit comments

Comments
 (0)