Debian Codegraph @

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

raw
1 import core.attribute;
2
3 @mustuse struct S
4 {
5 ref S opUnary(string op)() return
6 {
7 return this;
8 }
9 }
10
11 void test()
12 {
13 S s;
14 ++s;
15 --s;
16 s++;
17 s--;
18 }