Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/ext/instantiate3.C @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 // Test that 'inline template' instantiates the vtable. |
2 // { dg-do compile } | |
3 // { dg-options "-O -fno-implicit-templates" } | |
4 | |
5 template <class T> struct A { | |
6 virtual void f () { } | |
7 }; | |
8 inline template struct A<int>; | |
9 | |
10 // { dg-final { scan-assembler "\n_?_ZTV1AIiE(:|\n|\t)" } } | |
11 A<int> a; | |
12 | |
13 // { dg-final { scan-assembler-not "\n_?_ZTV1AIcE(:|\n|\t)" } } | |
14 A<char> b; |