Debian Codegraph @

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

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 }