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
d: Merge upstream dmd 568496d5b, druntime 178c44ff, phobos 574bf883b.
[official-gcc.git]
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
testCpCtor.d
blob
847c0f43693121135c3d01d6c039b4255e5da990
1
// https://issues.dlang.org/show_bug.cgi?id=19870
2
struct
T
3
{
4
int
i
;
5
this
(
ref return scope inout typeof
(
this
)
src
)
6
inout
@safe
pure nothrow
@nogc
7
{
8
i
=
src
.
i
;
9
}
10
}
11
12
struct
S
13
{
14
T t
;
15
}
16
17
void
main
()
18
{
19
T a
;
20
S b
=
S
(
a
);
21
}