]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/pr78469.C
aarch64: Fix invalid nested subregs [PR115464]
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / pr78469.C
CommitLineData
1d7bc790
NS
1// { dg-do compile { target c++11 } }
2// PR78469, bogus error about inaccessible dtor.
3
4struct no_destr {
5 no_destr() = default;
6
7protected:
8 ~no_destr() = default;
9};
10
11void *Foo ()
12{
13 return new no_destr ();
14}