Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/pr78469.C

raw
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
11 void *Foo ()
12 {
13 return new no_destr ();
14 }