Debian Codegraph @

gcc/testsuite/g++.dg/other/friend15.C

raw
1 // PR c++/59480
2
3 class Matrix;
4
5 void rot90 (const Matrix& a, int k = 1) { }
6 template<typename> void rot90_ (const Matrix& a, int k = 1) { }
7
8 class Matrix {
9 friend void rot90 (const Matrix&, int);
10 template<typename> friend void rot90_ (const Matrix&, int);
11 };
12
13 void rot90 (const Matrix& a, int k);
14 template<typename> void rot90_ (const Matrix& a, int k);