blob: ba51365d472cf924664d48451da6faf6117964ef [file] [log] [blame]
Aaron Ballmanedc80842015-04-27 22:31:12 +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};