aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gdc.test/compilable/test22619.d
blob: fd5e894715a8cdf858f88a9e194eef4cd483db25 (plain)
1
2
3
4
5
6
7
8
9
10
11
// https://issues.dlang.org/show_bug.cgi?id=22619

struct W1 {
	int x;
	this(ref inout W1 rhs) inout { this.x = rhs.x; }
}

inout(W1) f(inout W1 x) { return x; }
void g(W1 x) {
	auto r = f(x);
}