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
Remove old autovect-branch by moving to "dead" directory.
[official-gcc.git]
/
old-autovect-branch
/
gcc
/
testsuite
/
g++.old-deja
/
g++.jason
/
virtual2.C
blob
ffdd71c13afd85ce72485aac1c4fdf4468e23389
1
// { dg-do run }
2
struct A {
3
virtual A* f () { return this; }
4
};
5
6
struct B: public A {
7
virtual B* f () { return 0; }
8
};
9
10
int main ()
11
{
12
A* ap = new B;
13
return (ap->f () != 0);
14
}