We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b67b02f commit 504cba9Copy full SHA for 504cba9
src/common/tests/test-mlib.c
@@ -315,13 +315,17 @@ _test_cmp (void)
315
// mlib_cmp produces the correct answer:
316
ASSERT (mlib_cmp (-27, <, 20u));
317
318
+ // CDRIVER-6043: until VS 2019 (MSVC 19.20), compound literals seem to "escape" the expression or scope they are
319
+ // meant to be in. This includes the compound literals used by the conditional operator in mlib_upsize_integer.
320
+#if !defined(_MSC_VER) || _MSC_VER >= 1920
321
{
322
// Check that we do not double-evaluate the operand expression.
323
intmax_t a = 4;
324
mlib_check (mlib_cmp (++a, ==, 5));
325
// We only increment once:
326
mlib_check (a, eq, 5);
327
}
328
+#endif
329
330
331
static void
0 commit comments