Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
conversion
/
dynamic1.C
blob: 5a2c4be51aa9f977cca1926a538a5022946196e5 [
file
] [
log
] [
blame
]
// PR c++/10385
// Origin: <douglas@coc.ufrj.br>
// { dg-do compile }
struct
A
{
void
foo
();
};
A
&
bar
();
void
baz
()
{
dynamic_cast
<
A
&>(
bar
().
foo
);
// { dg-error "3:cannot 'dynamic_cast'" }
}