OSDN Git Service

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