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:
Marshall Clow 2015-09-22 18:09:13 +00:00
parent 842e3f6f51
commit bf94e48216

View File

@ -20,6 +20,7 @@ struct S {
int i;
S() : i(0) {}
S(int j) : i(j) {}
S * operator& () { assert(false); return this; }
S const * operator& () const { assert(false); return this; }
bool operator==(int x) const { return i == x; }
};