[test-vector] Test sink-move'ing

This commit is contained in:
Behdad Esfahbod 2022-11-18 19:26:02 -07:00
parent a3a218edb5
commit 039e476bac
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,9 @@ main (int argc, char **argv)
hb_set_t s {1, 5, 7};
v.push (s);
v << s;
assert (s.get_population () == 3);
v << std::move (s);
assert (s.get_population () == 0);
}
{