From 3e93e96dffda6748f0f577bf827ad271c5e3bfbe Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 4 Apr 2011 01:42:30 +0000 Subject: [PATCH] Corrected tests for http://llvm.org/bugs/show_bug.cgi?id=9351 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@128807 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../map/map.cons/default_recursive.pass.cpp | 9 +++---- .../multimap.cons/default_recursive.pass.cpp | 24 ------------------- .../multiset.cons/default_recursive.pass.cpp | 24 ------------------- .../set/set.cons/default_recursive.pass.cpp | 24 ------------------- 4 files changed, 5 insertions(+), 76 deletions(-) delete mode 100644 test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp delete mode 100644 test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp delete mode 100644 test/containers/associative/set/set.cons/default_recursive.pass.cpp diff --git a/test/containers/associative/map/map.cons/default_recursive.pass.cpp b/test/containers/associative/map/map.cons/default_recursive.pass.cpp index 485822d4..5dab7a6f 100644 --- a/test/containers/associative/map/map.cons/default_recursive.pass.cpp +++ b/test/containers/associative/map/map.cons/default_recursive.pass.cpp @@ -14,11 +14,12 @@ // map(); #include -#include + +struct X +{ + std::multimap m; +}; int main() { - std::map, std::map > m; - assert(m.empty()); - assert(m.begin() == m.end()); } diff --git a/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp b/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp deleted file mode 100644 index 2f62ea17..00000000 --- a/test/containers/associative/multimap/multimap.cons/default_recursive.pass.cpp +++ /dev/null @@ -1,24 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// - -// class multimap - -// multimap(); - -#include -#include - -int main() -{ - std::multimap, std::multimap > m; - assert(m.empty()); - assert(m.begin() == m.end()); -} diff --git a/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp b/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp deleted file mode 100644 index 95e3e194..00000000 --- a/test/containers/associative/multiset/multiset.cons/default_recursive.pass.cpp +++ /dev/null @@ -1,24 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// - -// class multiset - -// multiset(); - -#include -#include - -int main() -{ - std::multiset > m; - assert(m.empty()); - assert(m.begin() == m.end()); -} diff --git a/test/containers/associative/set/set.cons/default_recursive.pass.cpp b/test/containers/associative/set/set.cons/default_recursive.pass.cpp deleted file mode 100644 index 307addf1..00000000 --- a/test/containers/associative/set/set.cons/default_recursive.pass.cpp +++ /dev/null @@ -1,24 +0,0 @@ -//===----------------------------------------------------------------------===// -// -// 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. -// -//===----------------------------------------------------------------------===// - -// - -// class set - -// set(); - -#include -#include - -int main() -{ - std::set > s; - assert(s.empty()); - assert(s.begin() == s.end()); -}