mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-13 05:40:59 +00:00
MSVC 2013 appears to be able to compile make_ptr_range without issue, so removing that guard in the unit test.
llvm-svn: 229410
This commit is contained in:
parent
6f8c4cdcf6
commit
d816003d2b
@ -103,14 +103,11 @@ TEST(Range, passing) {
|
||||
std::iota(v.begin(), v.end(), 0);
|
||||
takes_range(make_range(v));
|
||||
takes_range(make_range(implicit_cast<const std::vector<int> &>(v)));
|
||||
// MSVC Can't compile make_ptr_range.
|
||||
#ifndef _MSC_VER
|
||||
static_assert(
|
||||
std::is_same<decltype(make_ptr_range(v)), lld::range<int *>>::value,
|
||||
"make_ptr_range should return a range of pointers");
|
||||
takes_range(make_ptr_range(v));
|
||||
takes_range(make_ptr_range(implicit_cast<const std::vector<int> &>(v)));
|
||||
#endif
|
||||
int arr[] = { 0, 1, 2, 3, 4 };
|
||||
takes_range(make_range(arr));
|
||||
const int carr[] = { 0, 1, 2, 3, 4 };
|
||||
|
Loading…
x
Reference in New Issue
Block a user