Run list debug copy test in C++03.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@273395 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2016-06-22 08:57:33 +00:00
parent 8d2b31567c
commit 3aef68f27e

View File

@@ -7,8 +7,6 @@
// //
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
// UNSUPPORTED: c++98, c++03
// <list> // <list>
// list(list&& c); // list(list&& c);
@@ -22,7 +20,8 @@
int main() int main()
{ {
std::list<int> l1 = {1, 2, 3}; std::list<int> l1;
l1.push_back(1); l1.push_back(2); l1.push_back(3);
std::list<int>::iterator i = l1.begin(); std::list<int>::iterator i = l1.begin();
std::list<int> l2 = l1; std::list<int> l2 = l1;
l2.erase(i); l2.erase(i);