Files
swift-mirror/test/Interop/Cxx/class/method/methods-module-interface.swift
2022-02-02 11:09:36 -08:00

20 lines
1.0 KiB
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=Methods -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
// CHECK: mutating func nonConstMethod()
// CHECK: func constMethod()
// CHECK: mutating func nonConstPassThrough(_ a: Int32) -> Int32
// CHECK: func constPassThrough(_ a: Int32) -> Int32
// CHECK: mutating func nonConstSum(_ a: Int32, _ b: Int32) -> Int32
// CHECK: func constSum(_ a: Int32, _ b: Int32) -> Int32
// CHECK: mutating func nonConstSum(_ a: NonTrivialInWrapper, _ b: NonTrivialInWrapper) -> Int32
// CHECK: func constSum(_ a: NonTrivialInWrapper, _ b: NonTrivialInWrapper) -> Int32
// CHECK: mutating func nonConstSumAsWrapper(_ a: NonTrivialInWrapper, _ b: NonTrivialInWrapper) -> NonTrivialInWrapper
// CHECK: func constSumAsWrapper(_ a: NonTrivialInWrapper, _ b: NonTrivialInWrapper) -> NonTrivialInWrapper
// CHECK: mutating func nonConstPassThroughAsWrapper(_ a: Int32) -> NonTrivialInWrapper
// CHECK: func constPassThroughAsWrapper(_ a: Int32) -> NonTrivialInWrapper