mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-11 17:08:42 +00:00
[libc++] Fix broken test in C++03 mode
This commit is contained in:
parent
798f2465f3
commit
1d7cec6adc
@ -88,13 +88,13 @@ TEST_CONSTEXPR_CXX20 void basic_test_cases() {
|
||||
bidirectional_iterator<const int*>(a), bidirectional_iterator<const int*>(an));
|
||||
test<std::vector<int, safe_allocator<int> > >(
|
||||
random_access_iterator<const int*>(a), random_access_iterator<const int*>(an));
|
||||
#endif
|
||||
|
||||
// Regression test for https://github.com/llvm/llvm-project/issues/46841
|
||||
{
|
||||
std::vector<int> v1({}, forward_iterator<const int*>{});
|
||||
std::vector<int> v2(forward_iterator<const int*>{}, {});
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_CONSTEXPR_CXX20 void emplaceable_concept_tests() {
|
||||
|
@ -97,7 +97,6 @@ TEST_CONSTEXPR_CXX20 void basic_tests() {
|
||||
random_access_iterator<const int*>(a), random_access_iterator<const int*>(an), alloc);
|
||||
test<std::vector<int, safe_allocator<int> > >(a, an, alloc);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Regression test for https://github.com/llvm/llvm-project/issues/46841
|
||||
{
|
||||
@ -105,6 +104,7 @@ TEST_CONSTEXPR_CXX20 void basic_tests() {
|
||||
std::vector<int, min_allocator<int> > v1({}, forward_iterator<const int*>{}, alloc);
|
||||
std::vector<int, min_allocator<int> > v2(forward_iterator<const int*>{}, {}, alloc);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
TEST_CONSTEXPR_CXX20 void emplaceable_concept_tests() {
|
||||
|
Loading…
Reference in New Issue
Block a user