1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 int ovl(int); // expected-note 3{{possible target for call}}
4 float ovl(float); // expected-note 3{{possible target for call}}
6 template<typename T
> T
ovl(T
); // expected-note 3{{possible target for call}}
9 (void)((void)0, ovl
); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}}
11 (void)(b
? ovl
: &ovl
); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}}
12 (void)(b
? ovl
<float> : &ovl
); // expected-error{{reference to overloaded function could not be resolved; did you mean to call it?}}
13 (void)(b
? ovl
<float> : ovl
<float>);
16 namespace rdar9623945
{
22 const char* text(void);
25 f(text
); // expected-error {{reference to non-static member function must be called; did you mean to call it with no arguments?}}
27 f(text
); // expected-error {{reference to non-static member function must be called; did you mean to call it with no arguments?}}
33 template <class T
> void bar() {} // expected-note {{possible target for call}}
36 decltype(bar
)::does_not_exist
; // expected-error {{reference to overloaded function could not be resolved; did you mean to call it?}}