c++: robustify testcase [PR109752]
[official-gcc.git] / gcc / testsuite / g++.dg / cpp1y / auto-fn64.C
blob13f3175da45bcb96d98ae44949ccba858f6a2477
1 // PR c++/105761
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options -Wno-non-template-friend }
5 template <class T>
6 class X {
7   friend auto f(X);
8 };
10 struct Y : X<long> {
11   friend auto f(X) { return 0L; }