aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.ext/instantiate3.C
blob: 92ad16dfd4517c1fecae7d166a53bb8cd71e2a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Test that 'inline template' instantiates the vtable.
// Special g++ Options: -g -O -fno-implicit-templates

// Ignore the 'ld returned 1' message from collect2.
// excess errors test - XFAIL *-*-*

template <class T> struct A {
  virtual void f () { }
};
inline template struct A<int>;

A<int> a;			// gets bogus error
A<char> b;			// ERROR - not instantiated XFAIL mips*-*-*
				// Irix's default linker does not
				// produce line numbers so XFAIL it.

int main ()
{
}