Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
g++.dg
/
init
/
copy3.C
blob: cfc739439284caf016ec046e9a00626555da495f [
file
] [
log
] [
blame
]
// { dg-do run { target c++14_down } }
// { dg-options "-fno-elide-constructors" }
int
copies
;
struct
S
{
S
()
{}
S
(
const
S
&)
{
++
copies
;
}
};
S s
[
1
]
=
{
S
()
};
int
main
()
{
if
(
copies
!=
1
)
return
1
;
}