Debian Codegraph @

gcc/testsuite/g++.dg/cpp1y/auto-fn64.C

raw
1 // PR c++/105761
2 // { dg-do compile { target c++14 } }
3 // { dg-additional-options -Wno-non-template-friend }
4
5 template <class T>
6 class X {
7 friend auto f(X);
8 };
9
10 struct Y : X<long> {
11 friend auto f(X) { return 0L; }
12 };