Fix tests and re-enable support for CXX operators

This commit is contained in:
Ehud Adler
2022-05-21 21:28:03 -04:00
parent 540e52a826
commit e7fe6f0fe7
22 changed files with 53 additions and 83 deletions

View File

@@ -7,8 +7,7 @@
// CHECK-NEXT: struct X {
// CHECK-NEXT: init()
// CHECK-NEXT: }
// TODO: check this again when operators are re-enabled: rdar://91070109 (also please enable this in the execution test "free-functions.swift")
// CHECK-NOT: static func +
// CHECK-NEXT: static func + (_: FunctionsNS1.X, _: FunctionsNS1.X) -> UnsafePointer<CChar>!
// CHECK-NEXT: static func sameNameInChild() -> UnsafePointer<CChar>!
// CHECK-NEXT: static func sameNameInSibling() -> UnsafePointer<CChar>!
// CHECK-NEXT: enum FunctionsNS2 {
@@ -21,8 +20,7 @@
// CHECK-NEXT: static func definedInDefs() -> UnsafePointer<CChar>!
// CHECK-NEXT: }
// TODO: check this again when operators are re-enabled: rdar://91070109 (also please enable this in the execution test "free-functions.swift")
// CHECK-NOT: static func +
// CHECK-NEXT: static func + (_: FunctionsNS1.X, _: FunctionsNS1.X) -> UnsafePointer<CChar>!
// CHECK-NEXT: enum FunctionsNS4 {
// CHECK-NEXT: static func sameNameInSibling() -> UnsafePointer<CChar>!