mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This imports the four basic arithmetic operators `+`, `-`, `*`, `/` declared as inline non-member functions. More to come.
7 lines
383 B
Swift
7 lines
383 B
Swift
// RUN: %target-swift-ide-test -print-module -module-to-print=NonMemberInline -I %S/Inputs -source-filename=x -enable-cxx-interop | %FileCheck %s
|
|
|
|
// CHECK: func + (lhs: IntBox, rhs: IntBox) -> IntBox
|
|
// CHECK-NEXT: func - (lhs: IntBox, rhs: IntBox) -> IntBox
|
|
// CHECK-NEXT: func * (lhs: IntBox, rhs: IntBox) -> IntBox
|
|
// CHECK-NEXT: func / (lhs: IntBox, rhs: IntBox) -> IntBox
|