Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
test20367.d
blob: ebdf9ee5b8d20d11a425d91670bd6d32ac37b944 [
file
] [
log
] [
blame
]
// https://issues.dlang.org/show_bug.cgi?id=20367
struct
A
{
int
x
;
this
(
ref
return
scope A rhs
)
{}
@disable
this
(
this
)
{}
}
void
main
()
{
A a
;
A b
=
a
;
// copy constructor gets called
}