1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2
3 struct A;
4
5 inline int g(); // expected-warning{{inline function 'g' is not defined}}
6
7 template<int M>
8 struct R {
g()9 friend int g() {
10 return M;
11 }
12 };
13
m()14 void m() {
15 g(); // expected-note{{used here}}
16 }
17