aboutsummaryrefslogtreecommitdiff
path: root/test/SemaCXX/direct-initializer.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-01-13 00:25:19 +0000
committerJohn McCall <rjmccall@apple.com>2010-01-13 00:25:19 +0000
commit220ccbf2c9ef97034cce80561f9f46c4f1f63bc7 (patch)
treeda32b58080875bda1362c4475b624aa9e388b346 /test/SemaCXX/direct-initializer.cpp
parentdd6bcc5f79666b9298d91a0a6ee7a0b537bde601 (diff)
Improve the reporting of non-viable overload candidates by noting the reason
why the candidate is non-viable. There's a lot we can do to improve this, but it's a good start. Further improvements should probably be integrated with the bad-initialization reporting routines. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@93277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/direct-initializer.cpp')
-rw-r--r--test/SemaCXX/direct-initializer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/SemaCXX/direct-initializer.cpp b/test/SemaCXX/direct-initializer.cpp
index bc1cde5827..6601a3dd0d 100644
--- a/test/SemaCXX/direct-initializer.cpp
+++ b/test/SemaCXX/direct-initializer.cpp
@@ -13,14 +13,14 @@ class Y {
explicit Y(float);
};
-class X { // expected-note{{candidate is the implicit copy constructor}}
+class X { // expected-note{{candidate constructor (the implicit copy constructor)}}
public:
explicit X(int); // expected-note{{candidate constructor}}
X(float, float, float); // expected-note{{candidate constructor}}
X(float, Y); // expected-note{{candidate constructor}}
};
-class Z { // expected-note{{candidate is the implicit copy constructor}}
+class Z { // expected-note{{candidate constructor (the implicit copy constructor)}}
public:
Z(int); // expected-note{{candidate constructor}}
};