OSDN Git Service

* gcc.dg/20020201-1.c: Use cleanup-coverage_files.
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.old-deja / g++.pt / repo1.C
1 // { dg-do link }
2 // { dg-options "-frepo" }
3
4 // Bug: g++ complains about duplicate explicit instantiations with -frepo.
5 // From Jason Merrill <jason@cygnus.com>
6
7 // Build then link:
8
9 template <class T> struct A {
10   virtual ~A () { }
11 };
12
13 template <class T> void g (T t) { }
14
15 template class A<int>;
16
17 int main ()
18 {
19   g (42);
20 }