The test I cnecked in to check the fix for PR#24890 failed (as expected) w/o the fix, but for the wrong reason. Now it fails for the right reason.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@248307 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
842e3f6f51
commit
bf94e48216
@ -20,6 +20,7 @@ struct S {
|
|||||||
int i;
|
int i;
|
||||||
S() : i(0) {}
|
S() : i(0) {}
|
||||||
S(int j) : i(j) {}
|
S(int j) : i(j) {}
|
||||||
|
S * operator& () { assert(false); return this; }
|
||||||
S const * operator& () const { assert(false); return this; }
|
S const * operator& () const { assert(false); return this; }
|
||||||
bool operator==(int x) const { return i == x; }
|
bool operator==(int x) const { return i == x; }
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user