[cfe-commits] [libcxx] r128797 - in /libcxx/trunk/test/containers/associative: map/map.cons/default_recursive.pass.cpp multimap/multimap.cons/default_recursive.pass.cpp multiset/multiset.cons/default_recursive.pass.cpp set/set.cons/default_recursive.pass.cpp

Howard Hinnant hhinnant at apple.com
Sun Apr 3 13:06:31 PDT 2011


Author: hhinnant
Date: Sun Apr  3 15:06:31 2011
New Revision: 128797

URL: http://llvm.org/viewvc/llvm-project?rev=128797&view=rev
Log:
... And these wonderful tests.

Added:
    libcxx/trunk/test/containers/associative/map/map.cons/default_recursive.pass.cpp
    libcxx/trunk/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp
    libcxx/trunk/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp
    libcxx/trunk/test/containers/associative/set/set.cons/default_recursive.pass.cpp

Added: libcxx/trunk/test/containers/associative/map/map.cons/default_recursive.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/associative/map/map.cons/default_recursive.pass.cpp?rev=128797&view=auto
==============================================================================
--- libcxx/trunk/test/containers/associative/map/map.cons/default_recursive.pass.cpp (added)
+++ libcxx/trunk/test/containers/associative/map/map.cons/default_recursive.pass.cpp Sun Apr  3 15:06:31 2011
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <map>
+
+// class map
+
+// map();
+
+#include <map>
+#include <cassert>
+
+int main()
+{
+    std::map<std::map<int,double>, std::map<int, double> > m;
+    assert(m.empty());
+    assert(m.begin() == m.end());
+}

Added: libcxx/trunk/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp?rev=128797&view=auto
==============================================================================
--- libcxx/trunk/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp (added)
+++ libcxx/trunk/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp Sun Apr  3 15:06:31 2011
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <map>
+
+// class multimap
+
+// multimap();
+
+#include <map>
+#include <cassert>
+
+int main()
+{
+    std::multimap<std::multimap<int,double>, std::multimap<int, double> > m;
+    assert(m.empty());
+    assert(m.begin() == m.end());
+}

Added: libcxx/trunk/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp?rev=128797&view=auto
==============================================================================
--- libcxx/trunk/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp (added)
+++ libcxx/trunk/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp Sun Apr  3 15:06:31 2011
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <set>
+
+// class multiset
+
+// multiset();
+
+#include <set>
+#include <cassert>
+
+int main()
+{
+    std::multiset<std::multiset<int> > m;
+    assert(m.empty());
+    assert(m.begin() == m.end());
+}

Added: libcxx/trunk/test/containers/associative/set/set.cons/default_recursive.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/associative/set/set.cons/default_recursive.pass.cpp?rev=128797&view=auto
==============================================================================
--- libcxx/trunk/test/containers/associative/set/set.cons/default_recursive.pass.cpp (added)
+++ libcxx/trunk/test/containers/associative/set/set.cons/default_recursive.pass.cpp Sun Apr  3 15:06:31 2011
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <set>
+
+// class set
+
+// set();
+
+#include <set>
+#include <cassert>
+
+int main()
+{
+    std::set<std::set<int> > s;
+    assert(s.empty());
+    assert(s.begin() == s.end());
+}





More information about the cfe-commits mailing list