From 6b459b753941bef25da10004f17580c18dd64af7 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Wed, 16 Nov 2016 14:50:29 -0800 Subject: [PATCH] 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 --- folly/test/RangeTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/folly/test/RangeTest.cpp b/folly/test/RangeTest.cpp index c918a53c..5861b60f 100644 --- a/folly/test/RangeTest.cpp +++ b/folly/test/RangeTest.cpp @@ -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}; -- 2.34.1