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
FSF GCC merge 02/23/03
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
virtual2.C
blob
ef42f8b19b7d52ccebf79612db24ad943724f67b
1
struct A {
2
virtual A* f () { return this; }
3
};
4
5
struct B: public A {
6
virtual B* f () { return 0; }
7
};
8
9
int main ()
10
{
11
A* ap = new B;
12
return (ap->f () != 0);
13
}