Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git] / old-autovect-branch / gcc / testsuite / g++.old-deja / g++.pt / repo1.C
blobc04b69e103437fd39e4a11e4b92fd72908f3fe6d
1 // { dg-do link }
2 // { dg-options "-frepo" }
4 // Bug: g++ complains about duplicate explicit instantiations with -frepo.
5 // From Jason Merrill <jason@cygnus.com>
7 // Build then link:
9 template <class T> struct A {
10   virtual ~A () { }
13 template <class T> void g (T t) { }
15 template class A<int>;
17 int main ()
19   g (42);
22 // { dg-final { cleanup-repo-files } }