1 // RUN: %clang_cc1 -fsyntax-only -verify %s
15 friend void bar(); // expected-error {{no matching function found in local scope}}
21 void bar(); // expected-note 3{{'::test2::bar' declared here}}
23 void foo() { // expected-note 2{{'::test2::foo' declared here}}
25 friend void foo(); // expected-error {{no matching function 'foo' found in local scope; did you mean '::test2::foo'?}}
28 void foo(); // expected-note {{local declaration nearly matches}}
35 friend void foo(); // expected-error {{no matching function found in local scope}}
42 friend void foo(); // expected-error {{no matching function 'foo' found in local scope; did you mean '::test2::foo'?}}
47 friend void bar(); // expected-error {{no matching function 'bar' found in local scope; did you mean '::test2::bar'?}}
52 friend void bar(); // expected-error {{no matching function 'bar' found in local scope; did you mean '::test2::bar'?}}
63 void bar() { Inner::f(); }
70 void bar(); // expected-note {{'bar' declared here}}
79 friend void baz(); // expected-error {{no matching function 'baz' found in local scope; did you mean 'bar'?}}
87 friend void bar(); // expected-error {{no matching function 'bar' found in local scope; did you mean '::test2::bar'?}}
88 friend void quux(); // expected-error {{no matching function found in local scope}}