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
/
rtti1.C
blob
32daaefa644759d78a26867c1809c90f7c8cb18e
1
// Test that typeid sees through references even when optimizing.
2
// { dg-do run }
3
// { dg-options "-O2" }
4
5
#include <typeinfo>
6
7
struct A
8
{
9
virtual ~A() { }
10
};
11
12
class B : public A { };
13
14
int main ()
15
{
16
B b;
17
A &aref = b;
18
19
return typeid (aref) != typeid (b);
20
}