2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / template / friend16.C
blob3165ed2b59d8ab404c3bd18054cdd5c87b3ffdcc
1 // { dg-do compile }
3 // Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
5 // PR c++/9602: Inline friend/pure virtual tree data sharing in
6 // class template.
8 template <typename T> struct X {
9   void foo (X);
10   friend void bar () {}
12     
13 template <typename T>
14 void X<T>::foo (X x) {}
15     
16 template struct X<int>;