Debian Codegraph @

gcc/testsuite/g++.dg/template/friend34.C

raw
1 // { dg-do compile }
2
3 // Origin: [email protected]
4 // Wolfgang Bangerth <[email protected]>
5
6 // PR c++/9783: Forward declaration of class in template.
7
8 template <typename T>
9 struct C {
10 void foo (struct X *);
11 };
12
13 struct X {};
14
15 template <typename T>
16 void C<T>::foo(struct X *) {}