FSF GCC merge 02/23/03
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.pt / repo1.C
blobf57b2c22fd05e3076650ed2070e254b616b0a9c5
1 // Bug: g++ complains about duplicate explicit instantiations with -frepo.
2 // From Jason Merrill <jason@cygnus.com>
4 // Build then link:
5 // Special g++ Options: -frepo
7 template <class T> struct A {
8   virtual ~A () { }
9 };
11 template <class T> void g (T t) { }
13 template class A<int>;
15 int main ()
17   g (42);