☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
must_use_opopassign.d
☽
☼
gcc/testsuite/gdc.test/compilable/must_use_opopassign.d
code
plain
raw
1
import core.attribute;
2
3
@mustuse struct S
4
{
5
ref S opOpAssign(string op)(S rhs) return
6
{
7
return this;
8
}
9
}
10
11
void test()
12
{
13
S a, b;
14
a += b;
15
}