Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/other/friend15.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | |
children |
rev | line source |
---|---|
131 | 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); |