From 039e476baccd87786e79e3b483c526d784f5631c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 18 Nov 2022 19:26:02 -0700 Subject: [PATCH] [test-vector] Test sink-move'ing --- src/test-vector.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test-vector.cc b/src/test-vector.cc index 2b4e6a506..a2b8b631f 100644 --- a/src/test-vector.cc +++ b/src/test-vector.cc @@ -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); } {