diff options
author | Douglas Gregor <dgregor@apple.com> | 2011-01-21 16:36:05 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2011-01-21 16:36:05 +0000 |
commit | 68ed68b227c25babfbdd38d9a5b4b423d501951f (patch) | |
tree | 9154671bf364cafcee5b0e7f93376ee4c601244f /test/SemaCXX/conditional-expr.cpp | |
parent | dd0e023cf8faf95eb8025a02ce6fd19ef7788216 (diff) |
Update the reference-binding implementation used for overload
resolution to match the latest C++0x working paper's semantics. The
implementation now matching up with the reference-binding
implementation used for initialization.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@123977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/conditional-expr.cpp')
-rw-r--r-- | test/SemaCXX/conditional-expr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/SemaCXX/conditional-expr.cpp b/test/SemaCXX/conditional-expr.cpp index a7f2a4c915..efda4ce97a 100644 --- a/test/SemaCXX/conditional-expr.cpp +++ b/test/SemaCXX/conditional-expr.cpp @@ -7,7 +7,10 @@ struct ToBool { explicit operator bool(); }; struct B; -struct A { A(); A(const B&); }; // expected-note 2 {{candidate constructor}} +struct A { // expected-note 2{{candidate is the implicit copy constructor}} + A(); + A(const B&); // expected-note 2 {{candidate constructor}} +}; struct B { operator A() const; }; // expected-note 2 {{candidate function}} struct I { operator int(); }; struct J { operator I(); }; |