Debian Codegraph @

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

raw
1 // PR c++/114619
2 // { dg-do "compile" { target c++11 } }
3 // { dg-options "-fno-elide-constructors" }
4
5 struct X {
6 X(const X&) {}
7 };
8 extern X x;
9 void foo () {
10 new X[1]{x};
11 }