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
/
dcast2.C
blob
62740834a65d51b3e60d5a3fda608238f6aca714
1
// { dg-do run }
2
struct A { virtual void f() { } };
3
struct B { virtual void g() { } };
4
struct C : public A, public B { };
5
6
int main ()
7
{
8
C* cp = 0;
9
B* bp = 0;
10
11
if (dynamic_cast <B*> (cp) != 0)
12
return 1;
13
14
if (dynamic_cast <void *> (bp) != 0)
15
return 1;
16
17
if (dynamic_cast <C*> (bp) != 0)
18
return 1;
19
}