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
PR c++/81917 - ICE with void_t and partial specialization.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
rtti
/
predefined-rtti-macro-1.C
blob
5c94bc1de177d56aed3ff3c0201b59fa907d6f2e
1
// { dg-do compile }
2
3
struct A { virtual ~A() { }; };
4
struct B : A { };
5
6
void f(B* bp)
7
{
8
bp =
9
#ifdef __GXX_RTTI
10
dynamic_cast<B*>(static_cast<A*>(0));
11
#endif
12
}