[iter] Test default-constructability
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 27 Dec 2018 00:56:37 +0000 (19:56 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 21 Jan 2019 01:12:12 +0000 (20:12 -0500)
src/test-iter.cc

index 0e713e1..3fdf4df 100644 (file)
@@ -65,6 +65,8 @@ struct some_array_t
 template <typename Iterator> static void
 test_iterator (Iterator it)
 {
+  Iterator default_constructed;
+
   /* Iterate over a copy of it. */
   for (auto c = it.iter (); c; c++)
     *c;