Skip to content

Commit 3e3e6ea

Browse files
committed
[interop][SwiftToCxx] NFC, add missing checks for inout class passing C++ thunk
1 parent 09dcbde commit 3e3e6ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Interop/SwiftToCxx/class/swift-class-in-cxx.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,7 @@ public func takeClassWithIntFieldInout(_ x: inout ClassWithIntField) {
8484
// CHECK: inline void takeClassWithIntField(const ClassWithIntField& x) noexcept {
8585
// CHECK-NEXT: return _impl::$s5Class04takeA12WithIntFieldyyAA0acdE0CF(::swift::_impl::_impl_RefCountedClass::getOpaquePointer(x));
8686
// CHECK-NEXT: }
87+
88+
// CHECK: inline void takeClassWithIntFieldInout(ClassWithIntField& x) noexcept {
89+
// CHECK-NEXT: return _impl::$s5Class04takeA17WithIntFieldInoutyyAA0acdE0CzF(&::swift::_impl::_impl_RefCountedClass::getOpaquePointerRef(x));
90+
// CHECK-NEXT: }

0 commit comments

Comments
 (0)