Debian Codegraph @

gcc/testsuite/gdc.test/compilable/test22619.d

raw
1 // https://issues.dlang.org/show_bug.cgi?id=22619
2
3 struct W1 {
4 int x;
5 this(ref inout W1 rhs) inout { this.x = rhs.x; }
6 }
7
8 inout(W1) f(inout W1 x) { return x; }
9 void g(W1 x) {
10 auto r = f(x);
11 }