☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
g++.dg
/
init
/
copy3.C
☽
☼
gcc/testsuite/g++.dg/init/copy3.C
code
plain
raw
1
// { dg-do run { target c++14_down } }
2
// { dg-options "-fno-elide-constructors" }
3
4
int copies;
5
6
struct S {
7
S () {}
8
S (const S&) { ++copies; }
9
};
10
11
S s[1] = { S () };
12
13
int main () {
14
if (copies != 1)
15
return 1;
16
}