Skip to content

Commit fb92680

Browse files
committed
add test for generated C declaration
1 parent b9c492a commit fb92680

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/Interop/SwiftToCxx/functions/swift-primitive-inout-functions-cxx-bridging.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
// RUN: %check-interop-cxx-header-in-clang(%t/functions.h)
66

7+
// CHECK: SWIFT_EXTERN void $s9Functions8inOutIntyySizF(ptrdiff_t * x) SWIFT_NOEXCEPT SWIFT_CALL; // inOutInt(_:)
8+
// CHECK: SWIFT_EXTERN void $s9Functions11inOutTwoIntyySiz_SiztF(ptrdiff_t * x, ptrdiff_t * y) SWIFT_NOEXCEPT SWIFT_CALL; // inOutTwoInt(_:_:)
9+
// CHECK: SWIFT_EXTERN void $s9Functions13inOutTwoParamyySbz_SdztF(bool * x, double * y) SWIFT_NOEXCEPT SWIFT_CALL; // inOutTwoParam(_:_:)
10+
711
// CHECK: inline void inOutInt(swift::Int & x) noexcept {
812
// CHECK-NEXT: return _impl::$s9Functions8inOutIntyySizF(&x);
913
// CHECK-NEXT: }

0 commit comments

Comments
 (0)