Debian Codegraph @

gcc/testsuite/g++.dg/init/no-elide3.C

raw
1 // PR c++/118199
2 // { dg-do "compile" { target c++11 } }
3 // { dg-options "-fno-elide-constructors" }
4
5 struct d { ~d(); };
6 d &b();
7 struct f {
8 [[__no_unique_address__]] d e;
9 };
10 struct h : f {
11 h() : f{b()} {}
12 } i;