Debian Codegraph @

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

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