Files
swift-mirror/test/Interop/Cxx/templates/class-template-with-function-parameter-module-interface.swift
2024-02-23 16:24:14 +00:00

17 lines
1.2 KiB
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=ClassTemplateWithFunctionParameter -I %S/Inputs -source-filename=x -enable-experimental-cxx-interop | %FileCheck %s
// RUN: %target-swift-ide-test -print-module -module-to-print=ClassTemplateWithFunctionParameter -I %S/Inputs -source-filename=x -cxx-interoperability-mode=swift-6 | %FileCheck %s
// RUN: %target-swift-ide-test -print-module -module-to-print=ClassTemplateWithFunctionParameter -I %S/Inputs -source-filename=x -cxx-interoperability-mode=upcoming-swift | %FileCheck %s
// CHECK: @available(*, unavailable
// CHECK: struct function_wrapper<Fn> {
// CHECK: }
// CHECK: typealias FuncBoolToBool = function_wrapper<((CBool) -> CBool)>
// CHECK: typealias FuncVoidToBool = function_wrapper<(() -> CBool)>
// CHECK: typealias FuncBoolToVoid = function_wrapper<((CBool) -> Void)>
// CHECK: typealias FuncVoidToVoid = function_wrapper<(() -> Void)>
// CHECK: typealias FuncIntToInt = function_wrapper<((CInt) -> CInt)>
// CHECK: typealias FuncIntIntToInt = function_wrapper<((CInt, CInt) -> CInt)>
// CHECK: typealias FuncIntIntToVoid = function_wrapper<((CInt, CInt) -> Void)>
// CHECK: typealias FuncIntIntBoolToVoid = function_wrapper<((CInt, CInt, CBool) -> Void)>