Sign in
gnu
/
gcc
/
d769c5040874bf9546f2524f3f1d2a894165f92a
/
.
/
gcc
/
testsuite
/
g++.dg
/
rtti
/
predefined-rtti-macro-1.C
blob: 5c94bc1de177d56aed3ff3c0201b59fa907d6f2e [
file
] [
log
] [
blame
]
// { dg-do compile }
struct
A
{
virtual
~
A
()
{
};
};
struct
B
:
A
{
};
void
f
(
B
*
bp
)
{
bp
=
#ifdef
__GXX_RTTI
dynamic_cast
<
B
*>(
static_cast
<
A
*>(
0
));
#endif
}