Disable a JSONTest.Integers test with newer MSVCs, PR46470
authorNico Weber <thakis@chromium.org>
Fri, 26 Jun 2020 23:57:52 +0000 (19:57 -0400)
committerNico Weber <thakis@chromium.org>
Fri, 26 Jun 2020 23:57:52 +0000 (19:57 -0400)
llvm/unittests/Support/JSONTest.cpp

index 0357e21..73fc626 100644 (file)
@@ -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.",