diff options
author | John McCall <rjmccall@apple.com> | 2010-01-06 09:43:14 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-01-06 09:43:14 +0000 |
commit | b1622a1fd7b7f4ab8d00d0183d17c90ad25c14e3 (patch) | |
tree | e4fc82aaeb530faf9d99061f43b10196764970c9 /test/SemaCXX/constructor-initializer.cpp | |
parent | d87bcfafc340b06322ee4fb3bb249088e1f87b7a (diff) |
Improve the diagnostics used to report implicitly-generated class members
as parts of overload sets. Also, refer to constructors as 'constructors'
rather than functions.
Adjust a lot of tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92832 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/SemaCXX/constructor-initializer.cpp')
-rw-r--r-- | test/SemaCXX/constructor-initializer.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/SemaCXX/constructor-initializer.cpp b/test/SemaCXX/constructor-initializer.cpp index 67d4074cbc..ecab4e47fd 100644 --- a/test/SemaCXX/constructor-initializer.cpp +++ b/test/SemaCXX/constructor-initializer.cpp @@ -97,13 +97,10 @@ struct Current : Derived { // expected-error {{member initializer 'NonExisting' does not name a non-static data member or}} }; - // FIXME. This is bad message! -struct M { // expected-note {{candidate function}} \ - // expected-note {{candidate function}} \ +struct M { // expected-note 2 {{candidate is the implicit copy constructor}} \ // expected-note {{declared here}} \ // expected-note {{declared here}} - M(int i, int j); // expected-note {{candidate function}} \ - // // expected-note {{candidate function}} + M(int i, int j); // expected-note 2 {{candidate constructor}} }; struct N : M { |