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
2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git]
/
gcc
/
testsuite
/
g++.old-deja
/
g++.mike
/
dyncast6.C
blob
60065a496f08312d501802f77ee210a4363a1b2a
1
// { dg-do assemble }
2
#include <typeinfo>
3
4
class A {
5
public:
6
virtual void j () {}
7
};
8
9
class B : public A { };
10
11
void x (A& a) {
12
const B& b1 = dynamic_cast<B&>((const A&)a); // { dg-error "" } opps
13
}