diff options
Diffstat (limited to 'test/SemaCXX/overload-call.cpp')
-rw-r--r-- | test/SemaCXX/overload-call.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/SemaCXX/overload-call.cpp b/test/SemaCXX/overload-call.cpp index 299c0a78f9..42bf029bd0 100644 --- a/test/SemaCXX/overload-call.cpp +++ b/test/SemaCXX/overload-call.cpp @@ -301,3 +301,13 @@ namespace PR5756 { (void)ir; } } + +// Tests the exact text used to note the candidates +namespace test1 { + template <class T> void foo(T t, unsigned N); // expected-note {{candidate function template specialization [with T = int]}} + void foo(int n, char N); // expected-note {{candidate function}} + + void test() { + foo(4, "hello"); //expected-error {{no matching function for call to 'foo'}} + } +} |