repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
virtual2.C
blob
a056a159a070f3e84c9ea82186d03859c6aa6ea8
1
// { dg-do assemble }
2
// Origin: Mark Mitchell <mark@codesourcery.com>
3
4
template <class T>
5
struct B
6
{
7
virtual void f() = 0;
8
};
9
10
template <class T>
11
struct D : public B<T> {
12
virtual void f();
13
};
14
15
void g() {
16
B<int>* bi = new D<int>;
17
}
18
19
template <class T>
20
void B<T>::f() {}
21