1 // { dg-do run } 2 // GROUPS passed templates 3 extern "C" int printf (const char *, ...); 4 5 template <class T> 6 class Foo 7 { 8 public: 9 void func (int const& i); 10 }; 11 12 template <class T> 13 void Foo<T>:: func(int const & i)14func (int const& i) 15 {} 16 17 main()18int main () 19 { 20 Foo<int const> foo; 21 printf ("PASS\n"); 22 return 0; 23 } 24