blob: de0e31d76f0693bd663a578c7e99e62806022a6e [file] [log] [blame]
/*******************************************/
// https://issues.dlang.org/show_bug.cgi?id=22336
import core.lifetime;
struct Foo {
int f = -1;
@disable this(this);
this(int x) { f = x; }
@disable this();
}
extern(C) int main() {
Foo a = Foo(42);
Foo b = move(a);
assert(a.f == -1);
assert(b.f == 42);
return 0;
}