repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merge with main truk.
[official-gcc.git]
/
gcc
/
testsuite
/
g++.dg
/
init
/
copy3.C
blob
fa6a6ea18841975d068e9f8e6f91a7dddf1bf570
1
// { dg-do run }
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
}