forked from OSchip/llvm-project
[libcxx][test] Use bool allocators for vector<bool>::get_allocator test
... to be consistent with other `get_allocator` tests, and to avoid requiring `vector<T, allocator<U>>` to be valid.
This commit is contained in:
parent
4cdc441690
commit
93230ac1d2
|
@ -20,13 +20,13 @@
|
|||
|
||||
int main(int, char**) {
|
||||
{
|
||||
std::allocator<int> alloc;
|
||||
std::allocator<bool> alloc;
|
||||
const std::vector<bool> vb(alloc);
|
||||
assert(vb.get_allocator() == alloc);
|
||||
}
|
||||
{
|
||||
other_allocator<int> alloc(1);
|
||||
const std::vector<bool, other_allocator<int> > vb(alloc);
|
||||
other_allocator<bool> alloc(1);
|
||||
const std::vector<bool, other_allocator<bool> > vb(alloc);
|
||||
assert(vb.get_allocator() == alloc);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue