Files
swift-mirror/test/Interop/Cxx/reference/closures-module-interface.swift
zoecarver caf83c2375 [cxx-interop] Import const-refs as value types when importing clang function types.
Otherwise, it will pass the value as a poitner.
2022-03-29 11:42:57 -07:00

5 lines
281 B
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=Closures -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
// CHECK: func invokeWith42ConstRef(_ fn: ((Int32) -> Void)!)
// CHECK: func invokeWith42Ref(_ fn: ((UnsafeMutablePointer<Int32>) -> Void)!)