]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/pr78469.C
aarch64: Further renaming of generic code
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr78469.C
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 }