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
c++: fix explicit/copy problem [PR109247]
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.dg
/
torture
/
gdc57.d
blob
579067bc21275c3d3d8cbd14ed580acfaaff3379
1
// https://bugzilla.gdcproject.org/show_bug.cgi?id=57
2
// { dg-do run }
3
// { dg-skip-if "needs gcc/config.d" { ! d_runtime } }
4
5
struct
S57
6
{
7
int
a
;
8
long
b
;
9
// Doesn't happen for bigger structs
10
}
11
12
S57
bar57
()
13
{
14
return
S57
(
4
,
42
);
15
}
16
17
void
main
()
18
{
19
S57 s
=
bar57
();
20
assert
(
s
is
S57
(
4
,
42
));
21
}