mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[nfc][cxx-interop] Add some tests for calling C++ methods.
Finally 😅
This commit is contained in:
19
test/Interop/Cxx/class/method/methods-module-interface.swift
Normal file
19
test/Interop/Cxx/class/method/methods-module-interface.swift
Normal file
@@ -0,0 +1,19 @@
|
||||
// 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
|
||||
Reference in New Issue
Block a user