[libcxx] r273395 - Run list debug copy test in C++03.
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 22 01:57:34 PDT 2016
Author: ericwf
Date: Wed Jun 22 03:57:33 2016
New Revision: 273395
URL: http://llvm.org/viewvc/llvm-project?rev=273395&view=rev
Log:
Run list debug copy test in C++03.
Modified:
libcxx/trunk/test/libcxx/containers/sequences/list/list.cons/db_copy.pass.cpp
Modified: libcxx/trunk/test/libcxx/containers/sequences/list/list.cons/db_copy.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/libcxx/containers/sequences/list/list.cons/db_copy.pass.cpp?rev=273395&r1=273394&r2=273395&view=diff
==============================================================================
--- libcxx/trunk/test/libcxx/containers/sequences/list/list.cons/db_copy.pass.cpp (original)
+++ libcxx/trunk/test/libcxx/containers/sequences/list/list.cons/db_copy.pass.cpp Wed Jun 22 03:57:33 2016
@@ -7,8 +7,6 @@
//
//===----------------------------------------------------------------------===//
-// UNSUPPORTED: c++98, c++03
-
// <list>
// list(list&& c);
@@ -22,7 +20,8 @@
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> l2 = l1;
l2.erase(i);
More information about the cfe-commits
mailing list