blob: 3310c51edc08cbb8d03a824124407f64ef5e0adb [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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>
#include "min_allocator.h"
int main()
{
{
std::set<int> m;
assert(m.empty());
assert(m.begin() == m.end());
}
#if TEST_STD_VER >= 11
{
std::set<int, std::less<int>, min_allocator<int>> m;
assert(m.empty());
assert(m.begin() == m.end());
}
{
typedef explicit_allocator<int> A;
{
std::set<int, std::less<int>, A> m;
assert(m.empty());
assert(m.begin() == m.end());
}
{
A a;
std::set<int, std::less<int>, A> m(a);
assert(m.empty());
assert(m.begin() == m.end());
}
}
{
std::set<int> m = {};
assert(m.empty());
assert(m.begin() == m.end());
}
#endif
}