File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
test/Interop/Cxx/class/move-only Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 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
6459MoveOnlyCxxValueType . 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
7973runAllTests ( )
You can’t perform that action at this time.
0 commit comments