[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:
Casey Carter 2022-01-01 21:53:37 -08:00
parent 4cdc441690
commit 93230ac1d2
1 changed files with 3 additions and 3 deletions

View File

@ -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);
}