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
2010-02-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
g++.dg
/
template
/
vtable1.C
1
// Test that vtables are set up properly for constructors and destructors
2
// of template classes.
3
4
// { dg-do run }
5
6
int r;
7
8
template <class T>
9
struct A {
10
virtual void f () { }
11
A() { f (); }
12
~A() { f (); }
13
};
14
15
struct B : public A<int> {
16
virtual void f () { ++r; }
17
};
18
19
int main ()
20
{
21
{ B b; }
22
return r;
23
}