OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add NIOS2 support. Code from SourceyG++.
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.pt
/
virtual2.C
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