1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 
3 void f(); // expected-note {{possible target for call}}
4 void f(int); // expected-note {{possible target for call}}
5 
6 void g() {
7   bool b = noexcept(f); // expected-error {{reference to overloaded function could not be resolved; did you mean to call it with no arguments?}}
8   bool b2 = noexcept(f(0));
9 }
10 
single_init()11 struct S {
12   void g(); // expected-note {{possible target for call}}
13   void g(int); // expected-note {{possible target for call}}
14 
15   void h() {
16     bool b = noexcept(this->g); // expected-error {{reference to non-static member function must be called; did you mean to call it with no arguments?}}
17     bool b2 = noexcept(this->g(0));
18   }
19 };
20