Sign in
gnu
/
gcc
/
1f16a020acbea0af26209478990b83b1a1ba3a2b
/
.
/
gcc
/
testsuite
/
gdc.test
/
compilable
/
must_use_opunary.d
blob: fc9650ebed5c3ab640e6605a5a779942ced7d5a9 [
file
] [
log
] [
blame
]
import
core
.
attribute
;
@mustuse
struct
S
{
ref
S opUnary
(
string
op
)()
return
{
return
this
;
}
}
void
test
()
{
S s
;
++
s
;
--
s
;
s
++;
s
--;
}