☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
must_use_opunary.d
☽
☼
gcc/testsuite/gdc.test/compilable/must_use_opunary.d
code
plain
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
}