... And these wonderful tests.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@128797 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d615e47bea
commit
b8a03c763a
@ -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());
|
||||||
|
}
|
@ -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());
|
||||||
|
}
|
@ -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());
|
||||||
|
}
|
@ -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());
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user