comparison gcc/testsuite/g++.dg/other/friend14.C @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents
children
comparison
equal deleted inserted replaced
111:04ced10e8804 131:84e7813d76e9
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(); }