| 1 | //===----------------------------------------------------------------------===// |
| 2 | // |
| 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | // <vector> |
| 10 | |
| 11 | #include <vector> |
| 12 | #include <type_traits> |
| 13 | |
| 14 | #include "test_allocator.h" |
| 15 | #include "test_macros.h" |
| 16 | |
| 17 | static_assert(!std::is_default_constructible<std::vector<bool>::reference>::value, "" ); |
| 18 | static_assert(!std::is_default_constructible<std::vector<bool, test_allocator<bool> >::reference>::value, "" ); |
| 19 | |
| 20 | #if TEST_STD_VER >= 11 |
| 21 | void test_no_ambiguity_among_default_constructors(std::enable_if<false>); |
| 22 | void test_no_ambiguity_among_default_constructors(std::vector<bool>::reference); |
| 23 | void test_no_ambiguity_among_default_constructors(std::vector<bool, test_allocator<bool>>::reference); |
| 24 | |
| 25 | ASSERT_SAME_TYPE(decltype(test_no_ambiguity_among_default_constructors({})), void); |
| 26 | #endif |
| 27 | |