Commit 1134f4ac by Jakub Jelinek Committed by Jakub Jelinek

* g++.dg/opt/rtti1.C: New test.

From-SVN: r64788
parent 8b5777db
2003-03-24 Jakub Jelinek <jakub@redhat.com>
* g++.dg/opt/rtti1.C: New test.
2003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
* gcc.dg/ultrasp5.c: New test.
......
// Test that typeid sees through references even when optimizing.
// { dg-do run }
// { dg-options "-O2" }
#include <typeinfo>
struct A
{
virtual ~A() { }
};
class B : public A { };
int main ()
{
B b;
A &aref = b;
return typeid (aref) != typeid (b);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment