gcc/testsuite/g++.dg/other/friend14.C
raw| 1 | // PR c++/59480 |
| 2 | |
| 3 | class Matrix; |
| 4 | |
| 5 | Matrix rot90 (const Matrix& a, int k = 1); |
| 6 | template<typename> Matrix rot90_ (const Matrix& a, int k = 1); |
| 7 | |
| 8 | class Matrix { |
| 9 | friend Matrix rot90 (const Matrix&, int); |
| 10 | template<typename> friend Matrix rot90_ (const Matrix&, int); |
| 11 | }; |
| 12 | |
| 13 | Matrix rot90 (const Matrix& a, int k) { return Matrix(); } |
| 14 | template<typename> Matrix rot90_ (const Matrix& a, int k) { return Matrix(); } |