diff --git a/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp b/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp --- a/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp +++ b/libcxx/test/std/containers/sequences/vector/vector.modifiers/erase_iter.pass.cpp @@ -35,6 +35,12 @@ int main(int, char**) { + { + int a1[] = {1, 2, 3, 4, 5}; + std::vector l1(a1, a1+5); + l1.erase(l1.begin()); + assert(l1 == std::vector(a1+1, a1+5)); + } { int a1[] = {1, 2, 3}; std::vector l1(a1, a1+3);