1 // RUN: %clang_cc1 -fsyntax-only -verify %s -std=c++11
3 void f(); // expected-note{{possible target for call}}
4 void f(int); // expected-note{{possible target for call}}
5 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')}}
7 template<typename T> struct S {
8 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}}
12 void f(); // expected-note{{possible target for call}}
13 void f(int); // expected-note{{possible target for call}}
15 S<K> b; // expected-note{{in instantiation of template class 'S<K>' requested here}}