2018-11-07 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / g++.dg / other / friend11.C
blobb82b39ddbe371f2b17dceac09da031878dedbf58
1 // PR c++/59480
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 };