mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] Add support for C++ shift operators. (#32333)
* [cxx-interop] Add support for C++ shift operators. Support imported C++ `<<` and `>>` operators in Swift. * Update test names of existing operators ... to match the new ones. Co-authored-by: Michael Forster <forster@google.com>
This commit is contained in:
@@ -4,6 +4,8 @@
|
||||
// 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: func && (lhs: BoolBox, rhs: BoolBox) -> BoolBox
|
||||
// CHECK-NEXT: func || (lhs: BoolBox, rhs: BoolBox) -> BoolBox
|
||||
|
||||
Reference in New Issue
Block a user