friend36.C revision 1.1.1.1
1// PR c++/22139 2// { dg-options "--param ggc-min-expand=0 --param ggc-min-heapsize=0" } 3 4template <int rank, int dim> class Tensor; 5template <int rank, int dim> struct SymmetricTensor { 6 SymmetricTensor (const Tensor<2,dim> &t); 7 friend void foo(); 8}; 9template <> SymmetricTensor<2,2>::SymmetricTensor (const Tensor<2,2> &t) {} 10template <> SymmetricTensor<2,3>::SymmetricTensor (const Tensor<2,3> &t) {} 11