Skip to content

Commit cbb6e08

Browse files
author
Julian LALU
committed
Add tests that should not compile
1 parent 3990ceb commit cbb6e08

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/hashmap/hashmap_iterator.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,20 @@
11
#include <core/containers/hashmap.h>
22
#include <core/algorithms/find.h>
33

4+
GTEST_TEST(hashmap, dtes)
5+
{
6+
hud::hashmap<hud_test::non_bitwise_type, hud_test::non_bitwise_type> map {
7+
{1, 11},
8+
{2, 22},
9+
{3, 33},
10+
{4, 44}
11+
};
12+
13+
auto it = map.begin();
14+
// Should not be possible
15+
auto s = hud::move(*it);
16+
}
17+
418
GTEST_TEST(hashmap, iterators)
519
{
620
const auto test = []()

0 commit comments

Comments
 (0)