summaryrefslogtreecommitdiff
path: root/test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test.cc')
-rw-r--r--test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/test.cc b/test.cc
index d22bc24..a96cb7a 100644
--- a/test.cc
+++ b/test.cc
@@ -259,6 +259,11 @@ int main() {
chkeq(opt.chk(),true);
chkeq(opt.exp(fun,"expectation failed"),-0x45);
+
+ ::zp::opt<::zp::i8s> const optasg = opt;
+
+ chkeq(optasg.chk(),true);
+ chkeq(optasg.exp(fun,"expectation failed"),-0x45);
}();
[&] {