Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test22510.d
blob: af5d0a433eb9103a4a7d49288463db221c9f66d7 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=22510
struct
S
{
int
b
;
@disable
this
(
this
);
this
(
scope
ref
inout S
)
inout
{
this
.
b
=
b
;
}
}
void
main
()
{
auto
scoped_s
=
S
(
4
);
auto
heap_s
=
new
S
(
42
);
}