C++: Add opindex for -Wchanges-meaning [PR117157]
[official-gcc.git] / gcc / testsuite / g++.dg / init / copy3.C
blobcfc739439284caf016ec046e9a00626555da495f
1 // { dg-do run { target c++14_down } }
2 // { dg-options "-fno-elide-constructors" }
4 int copies;
6 struct S { 
7   S () {}
8   S (const S&) { ++copies; }
9 };
11 S s[1] = { S () };
13 int main () {
14   if (copies != 1)
15     return 1;