Files
swift-mirror/test/Interop/Cxx/operators/non-member-inline-module-interface.swift
zoecarver d411f92cdd [cxx-interop] Add support for C++ comparison operators.
Adds support for C++ operators: `<`, `>`, `==`, `!=`, `<=`, and `>=`.
2020-06-17 15:54:09 -07:00

21 lines
1.1 KiB
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
// CHECK-NEXT: 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
// CHECK-NEXT: func >> (lhs: IntBox, rhs: IntBox) -> IntBox
// CHECK-NEXT: func < (lhs: IntBox, rhs: IntBox) -> Bool
// CHECK-NEXT: func > (lhs: IntBox, rhs: IntBox) -> Bool
// CHECK-NEXT: func == (lhs: IntBox, rhs: IntBox) -> Bool
// CHECK-NEXT: func != (lhs: IntBox, rhs: IntBox) -> Bool
// CHECK-NEXT: func <= (lhs: IntBox, rhs: IntBox) -> Bool
// CHECK-NEXT: func >= (lhs: IntBox, rhs: IntBox) -> Bool
// CHECK: func && (lhs: BoolBox, rhs: BoolBox) -> BoolBox
// CHECK-NEXT: func || (lhs: BoolBox, rhs: BoolBox) -> BoolBox