1 // { dg-do run } 2 // { dg-additional-sources "local1-a.cc" } 3 4 #include <typeinfo> 5 6 struct B { bB7 virtual void b() {} 8 }; 9 f()10static B* f() { 11 struct D : public B { 12 }; 13 14 return new D; 15 } 16 17 extern B* g(); 18 main()19int main () { 20 if (typeid (*f()) == typeid (*g())) 21 return 1; 22 } 23