2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / instantiate1.C
blobe44b063539a8d48058d65d974d7b983022c25f98
1 // { dg-do assemble  }
3 template <class T>
4 void f(T t) {}
6 template void f<int>(int);
7 template void f<>(long);
9 template <class T>
10 struct S
12   void bar(int) {}
13   
14   template <class U>
15   void baz(U u) {}
19 template struct S<char>;
20 template void S<int>::bar(int);
21 template void S<double>::baz<short>(short);
22 template void S<long>::baz<>(char);