* config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
[official-gcc.git] / gcc / testsuite / g++.dg / lto / pr42987_0.C
blobe422daa69e7e93700fd70fc41d2f2ade9daa1c11
1 // { dg-lto-do run }
2 // { dg-lto-options { { -flto -g } { -flto -flto-partition=none -g } } }
4 #include <typeinfo>
6 struct B {
7   virtual void b() {}
8 };
10 static B* f() {
11   struct D : public B {
12   };
14   return new D;
17 extern B* g();
19 int main () {
20   if (typeid (*f()) == typeid (*g()))
21     return 1;