diff --git a/test/Jamfile.v2 b/test/Jamfile.v2 index a11f5cee..1bf3d858 100644 --- a/test/Jamfile.v2 +++ b/test/Jamfile.v2 @@ -89,3 +89,5 @@ run exception/erase_exception_tests.cpp ; run exception/rehash_exception_tests.cpp ; run exception/swap_exception_tests.cpp : : : BOOST_UNORDERED_SWAP_METHOD=2 ; run exception/merge_exception_tests.cpp ; + +run quick.cpp ; diff --git a/test/quick.cpp b/test/quick.cpp new file mode 100644 index 00000000..e0f6a591 --- /dev/null +++ b/test/quick.cpp @@ -0,0 +1,19 @@ +// Copyright 2022 Peter Dimov +// Distributed under the Boost Software License, Version 1.0. +// https://www.boost.org/LICENSE_1_0.txt + +#include +#include +#include + +int main() +{ + boost::unordered_map map; + + map[ "2" ] = 2; + + BOOST_TEST_EQ( map[ "1" ], 0 ); + BOOST_TEST_EQ( map[ "2" ], 2 ); + + return boost::report_errors(); +}