1// { dg-do compile } 2 3// Origin: Wolfgang Bangerth <bangerth@ticam.utexas.edu> 4 5// PR c++/9602: Inline friend/pure virtual tree data sharing in 6// class template. 7 8template <typename T> struct X { 9 void foo (X); 10 friend void bar () {} 11}; 12 13template <typename T> 14void X<T>::foo (X x) {} 15 16template struct X<int>; 17