summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/template1.C
blob: 359c8f16543546b061a2edcc6ae856fc0b105061 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// { dg-do assemble  }
// PRMS Id: 4688
// Bug: g++ can't deal with templates instantiated within extern "C".

class Gnaf {
public:
   virtual int invariant ();
};

template <class T> class Array : public Gnaf {
public:
   virtual int invariant();
};

extern "C"
int foo()
{
   Array<int> toConv;
   return 0;
}