Skip to content

Commit fb1aa28

Browse files
committed
Disable a JSONTest.Integers test with newer MSVCs, PR46470
1 parent d298acd commit fb1aa28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/unittests/Support/JSONTest.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,13 +324,17 @@ TEST(JSONTest, Integers) {
324324
double{-0x4000000000000000},
325325
},
326326

327+
// PR46470,
328+
// https://developercommunity.visualstudio.com/content/problem/1093399/incorrect-result-when-printing-6917529027641081856.html
329+
#if !defined(_MSC_VER) || _MSC_VER < 1926
327330
{
328331
"Dynamically exact integer. Stored as double, convertible.",
329332
double{0x6000000000000000},
330333
"6.9175290276410819e+18",
331334
int64_t{0x6000000000000000},
332335
double{0x6000000000000000},
333336
},
337+
#endif
334338

335339
{
336340
"Dynamically integer, >64 bits. Stored as double, not convertible.",

0 commit comments

Comments
 (0)