diff options
Diffstat (limited to 'test/SemaCXX/decltype-overloaded-functions.cpp')
-rw-r--r-- | test/SemaCXX/decltype-overloaded-functions.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/SemaCXX/decltype-overloaded-functions.cpp b/test/SemaCXX/decltype-overloaded-functions.cpp index f4aacd64ddbc..b0a43a999bb6 100644 --- a/test/SemaCXX/decltype-overloaded-functions.cpp +++ b/test/SemaCXX/decltype-overloaded-functions.cpp @@ -1,15 +1,15 @@ -// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++0x +// RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11 -void f(); // expected-note{{candidate function}} -void f(int); // expected-note{{candidate function}} -decltype(f) a; // expected-error{{cannot resolve overloaded function 'f' from context}} +void f(); // expected-note{{possible target for call}} +void f(int); // expected-note{{possible target for call}} +decltype(f) a; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} expected-error {{variable has incomplete type 'decltype(f())' (aka 'void')}} template<typename T> struct S { - decltype(T::f) * f; // expected-error{{cannot resolve overloaded function 'f' from context}} + decltype(T::f) * f; // expected-error{{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}} expected-error {{call to non-static member function without an object argument}} }; struct K { - void f(); // expected-note{{candidate function}} - void f(int); // expected-note{{candidate function}} + void f(); // expected-note{{possible target for call}} + void f(int); // expected-note{{possible target for call}} }; S<K> b; // expected-note{{in instantiation of template class 'S<K>' requested here}} |