Files
swift-mirror/test/Interop/Cxx/class/method/methods-module-interface.swift
zoecarver 839839f924 [cxx-interop] Rename enable-cxx-interop -> enable-experimental-cxx-interop.
Also removes the driver flag, this will now also always be guarded on `-Xfrontend`.
2022-04-07 19:15:25 -07:00

19 lines
1.0 KiB
Swift

// RUN: %target-swift-ide-test -print-module -module-to-print=Methods -I %S/Inputs -source-filename=x -enable-experimental-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