aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/rvalueref.d
blob: 1c96c36f1f5b3334f0b9a363d9f506e88e7eea3e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* REQUIRED_ARGS: -preview=rvaluerefparam
 */

struct AS
{
    string get() @safe @nogc pure nothrow { return _s; }
    alias get this;
    @disable this(this);
    string _s;
}

void popFront(ref string) { }
static assert(!is(typeof((R r) => r.popFront)));