1 // { dg-do compile { target c++11 } }
2 // PR78469, bogus error about inaccessible dtor.
3 
4 struct no_destr {
5   no_destr() = default;
6 
7 protected:
8   ~no_destr() = default;
9 };
10 
Foo()11 void *Foo ()
12 {
13   return new no_destr ();
14 }
15