Skip to content

Commit 1757cac

Browse files
committed
Revert "[nfc] Add test for operators on address-only types."
This reverts commit bcb86b2. For some reason this isn't working, need to investigate.
1 parent 588c287 commit 1757cac

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

test/Interop/Cxx/operators/Inputs/member-inline.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,6 @@ struct AddressOnlyIntWrapper {
4343
int operator()(int x, int y) {
4444
return value + x * y;
4545
}
46-
47-
AddressOnlyIntWrapper operator-(AddressOnlyIntWrapper rhs) const {
48-
return AddressOnlyIntWrapper(value - rhs.value);
49-
}
5046
};
5147

5248
struct HasDeletedOperator {

test/Interop/Cxx/operators/member-inline.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -231,14 +231,6 @@ OperatorsTestSuite.test("PtrToPtr.subscript (inline)") {
231231
expectEqual(23, arr[0]![0]![0])
232232
}
233233

234-
OperatorsTestSuite.test("AddressOnlyIntWrapper.minus") {
235-
let lhs = AddressOnlyIntWrapper(42)
236-
let rhs = AddressOnlyIntWrapper(23)
237-
238-
let result = lhs - rhs
239-
expectEqual(19, result.value)
240-
}
241-
242234
// TODO: this causes a crash (does it also crash on main?)
243235
//OperatorsTestSuite.test("TemplatedSubscriptArrayByVal.subscript (inline)") {
244236
// let ptr: UnsafeMutablePointer<Int32> =

0 commit comments

Comments
 (0)