repo.or.cz
/
netbsd-mini2440.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
No empty .Rs/.Re
[netbsd-mini2440.git]
/
gnu
/
dist
/
gcc4
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
dynamic1.C
blob
a781cbaa3fbae05553bf9e505276a64f6e0f0ea1
1
// PR c++/10385
2
// Origin: <douglas@coc.ufrj.br>
3
// { dg-do compile }
4
5
struct A
6
{
7
void foo();
8
};
9
10
A& bar();
11
12
void baz()
13
{
14
dynamic_cast<A&>( bar().foo ); // { dg-error "cannot dynamic_cast" }
15
}