blob: f1fe01a845fdb4a28757fb997b8fc6feb815a14c [file] [log] [blame]
Dimitry Andricb1aa87e2016-01-03 15:55:40 +00001// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3void f(); // expected-note {{possible target for call}}
4void f(int); // expected-note {{possible target for call}}
5
6void 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
11struct 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};