1 // PR c++/79490
2 // { dg-options -fsyntax-only }
3 
4 struct IRegistryHub {
5   virtual ~IRegistryHub();
6 };
7 namespace {
8 class A : IRegistryHub {};
9 A *fn1();
10 }
fn2()11 void fn2() { delete fn1(); }
12