From fb1aa286c1400ad75cd066df6c0233332b3fd9b8 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 26 Jun 2020 19:57:52 -0400 Subject: [PATCH] Disable a JSONTest.Integers test with newer MSVCs, PR46470 --- llvm/unittests/Support/JSONTest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/llvm/unittests/Support/JSONTest.cpp b/llvm/unittests/Support/JSONTest.cpp index 0357e21..73fc626 100644 --- a/llvm/unittests/Support/JSONTest.cpp +++ b/llvm/unittests/Support/JSONTest.cpp @@ -324,6 +324,9 @@ TEST(JSONTest, Integers) { double{-0x4000000000000000}, }, + // PR46470, + // https://developercommunity.visualstudio.com/content/problem/1093399/incorrect-result-when-printing-6917529027641081856.html +#if !defined(_MSC_VER) || _MSC_VER < 1926 { "Dynamically exact integer. Stored as double, convertible.", double{0x6000000000000000}, @@ -331,6 +334,7 @@ TEST(JSONTest, Integers) { int64_t{0x6000000000000000}, double{0x6000000000000000}, }, +#endif { "Dynamically integer, >64 bits. Stored as double, not convertible.", -- 2.7.4