summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaCXX/constructor-initializer.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-01-06 09:43:14 +0000
committerJohn McCall <rjmccall@apple.com>2010-01-06 09:43:14 +0000
commitfd0b2f8fe486f707b4f7b71501c1b60e5e7b5fd2 (patch)
treede466ea53c44c81b4b191191789aff297bf72974 /clang/test/SemaCXX/constructor-initializer.cpp
parent40d2429b2831ddbb146f7619eb289293deec69f6 (diff)
downloadbcm5719-llvm-fd0b2f8fe486f707b4f7b71501c1b60e5e7b5fd2.tar.gz
bcm5719-llvm-fd0b2f8fe486f707b4f7b71501c1b60e5e7b5fd2.zip
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. llvm-svn: 92832
Diffstat (limited to 'clang/test/SemaCXX/constructor-initializer.cpp')
-rw-r--r--clang/test/SemaCXX/constructor-initializer.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/clang/test/SemaCXX/constructor-initializer.cpp b/clang/test/SemaCXX/constructor-initializer.cpp
index 67d4074cbcd..ecab4e47fda 100644
--- a/clang/test/SemaCXX/constructor-initializer.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud