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
reflect: canonicalize types returned by StructOf() and friends
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.brendan
/
abstract1.C
blob
e37ee2eacff56e98a2cd095b78f3a64cf8340e0e
1
// { dg-do assemble }
2
// GROUPS passed abstract-functions
3
class O
4
{
5
public:
6
virtual int c()=0;
7
};
8
9
class I: public O
10
{
11
};
12
13
class S: public virtual I
14
{
15
public:
16
int c();
17
virtual int v()=0;
18
};
19
20
class D: public S
21
{
22
int v();
23
};
24
25
D *p=new D();