diff options
Diffstat (limited to 'test/option.cc')
-rw-r--r-- | test/option.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/option.cc b/test/option.cc index 30b2406..cf80374 100644 --- a/test/option.cc +++ b/test/option.cc @@ -32,11 +32,11 @@ int main() { }; { - option<int> o1; - option<int> o2{::option::none{}}; + const option<int> kO1{}; + const option<int> kO2{::option::none{}}; - assert(!o1.has_value()); - assert(!o2.has_value()); + assert(!kO1.has_value()); + assert(!kO2.has_value()); } // Assume we start test with cnt=0. |