Debian Codegraph @

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

raw
1 // PR c++/59480
2
3 class test {
4 friend int foo(bool = true) { return 1; } // { dg-message "14:previous" }
5 template<typename> friend int bar(bool = true) { return 1; } // { dg-message "33:previous" }
6 };
7
8 int foo(bool); // { dg-error "5:friend declaration" }
9 template<typename> int bar(bool); // { dg-error "24:friend declaration" }