2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.dg / ext / instantiate3.C
blobea60d5bf98c0720451d95c64ce132a1569246ec9
1 // Test that 'inline template' instantiates the vtable.
2 // { dg-do compile }
3 // { dg-options "-O -fno-implicit-templates" }
5 template <class T> struct A {
6   virtual void f () { }
7 };
8 inline template struct A<int>;
10 // { dg-final { scan-assembler "\n_?_ZTV1AIiE(:|\n|\t)" } }
11 A<int> a;
13 // { dg-final { scan-assembler-not "\n_?_ZTV1AIcE(:|\n|\t)" } }
14 A<char> b;