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.

llvm-svn: 248307
This commit is contained in:
Marshall Clow 2015-09-22 18:09:13 +00:00
parent da817b6186
commit e8fe34d4d1
1 changed files with 1 additions and 0 deletions

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; }
};