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
/
opt
/
rtti2.C
blob
ebbe3cdfda8d24dbcad753c70ef5ea9b1d821feb
1
// { dg-do compile }
2
// { dg-options "-O2" }
3
// We used to ICE in compare_values as the types for a comparison
4
// were not the same kind of types.
5
6
struct class1
7
{
8
virtual ~class1 ();
9
};
10
struct class2 : class1 { };
11
12
void f(class1 * oo)
13
{
14
class2 * oj = dynamic_cast <class2 *>(oo) ;
15
if (oj)
16
delete oo;
17
}