diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-15 06:21:54 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-05-15 06:21:54 +0000 |
commit | d72da1513aa92aa47066c7aa498d987d2ae559ea (patch) | |
tree | 5474f1b7420e98ed8b013dcc41980613aba6818a /clang/test/SemaCXX/overload-member-call.cpp | |
parent | 8e4a3868fec3664125d82093ed13303ff368285b (diff) | |
download | bcm5719-llvm-d72da1513aa92aa47066c7aa498d987d2ae559ea.tar.gz bcm5719-llvm-d72da1513aa92aa47066c7aa498d987d2ae559ea.zip |
Further improvement to wording of overload resolution diagnostics, and including
the sole parameter name in the diagnostic in more cases. Patch by Terry Long!
llvm-svn: 156807
Diffstat (limited to 'clang/test/SemaCXX/overload-member-call.cpp')
-rw-r--r-- | clang/test/SemaCXX/overload-member-call.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/SemaCXX/overload-member-call.cpp b/clang/test/SemaCXX/overload-member-call.cpp index 31dac19a124..09586201e56 100644 --- a/clang/test/SemaCXX/overload-member-call.cpp +++ b/clang/test/SemaCXX/overload-member-call.cpp @@ -83,10 +83,10 @@ namespace test1 { void baz(int i); // expected-note {{candidate function not viable: no known conversion from 'const test1::A' to 'int' for 1st argument}} // PR 11857 - void foo(int n); // expected-note {{candidate function not viable: requires argument 'n', but 2 were provided}} - void foo(unsigned n = 10); // expected-note {{candidate function not viable: requires at most argument 'n', but 2 were provided}} - void rab(double n, int u = 0); // expected-note {{candidate function not viable: requires at least argument 'n', but none were provided}} - void rab(int n, int u = 0); // expected-note {{candidate function not viable: requires at least argument 'n', but none were provided}} + void foo(int n); // expected-note {{candidate function not viable: requires single argument 'n', but 2 arguments were provided}} + void foo(unsigned n = 10); // expected-note {{candidate function not viable: allows at most single argument 'n', but 2 arguments were provided}} + void rab(double n, int u = 0); // expected-note {{candidate function not viable: requires at least argument 'n', but no arguments were provided}} + void rab(int n, int u = 0); // expected-note {{candidate function not viable: requires at least argument 'n', but no arguments were provided}} void zab(double n = 0.0, int u = 0); // expected-note {{candidate function not viable: requires at most 2 arguments, but 3 were provided}} void zab(int n = 0, int u = 0); // expected-note {{candidate function not viable: requires at most 2 arguments, but 3 were provided}} }; |