blob: cfc739439284caf016ec046e9a00626555da495f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// { 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;
}
|