[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:
Zoe Carver
2020-06-12 08:40:25 -07:00
committed by GitHub
parent e1ceab0b37
commit 1e52852cca
5 changed files with 36 additions and 4 deletions

View File

@@ -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