mirror of
https://github.com/dlang/dmd.git
synced 2025-04-27 05:30:13 +03:00
This commit is contained in:
parent
1fa6c0a960
commit
c57da0cf59
4 changed files with 38 additions and 2 deletions
|
@ -55,6 +55,8 @@ struct S4
|
|||
{
|
||||
void* p;
|
||||
|
||||
this(ref S4) { }
|
||||
|
||||
this(S4 s)
|
||||
{
|
||||
assert(&s is &x); // confirm the rvalue reference
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue