Commit 6b459b75 authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Disable the CArray RangeFunc tests under MSVC

Summary: Because it won't compile due to an MSVC bug. See the link in the comment for more info.

Reviewed By: yfeldblum

Differential Revision: D4191233

fbshipit-source-id: 523deebe12379ff56934a4259b601d4ab677b9b6
parent 2782b014
......@@ -1093,10 +1093,14 @@ TEST(RangeFunc, Array) {
testRangeFunc(x, 3);
}
// MSVC doesn't like it when you try to std::move C arrays:
// https://developercommunity.visualstudio.com/content/problem/2441/
#ifndef _MSC_VER
TEST(RangeFunc, CArray) {
int x[] {1, 2, 3, 4};
testRangeFunc(x, 4);
}
#endif
TEST(RangeFunc, ConstexprCArray) {
static constexpr const int numArray[4] = {3, 17, 1, 9};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment