[NFC][msan] Fix assigned-unused warning

This commit is contained in:
Vitaly Buka 2021-06-02 00:08:46 -07:00
parent 2445838f74
commit 60c0256ef1
1 changed files with 6 additions and 6 deletions

View File

@ -1873,20 +1873,20 @@ TEST_STRTO_FLOAT_LOC(__wcstold_l, wchar_t, L)
#endif // __GLIBC__
TEST(MemorySanitizer, modf) {
double x, y;
x = modf(2.1, &y);
double y;
modf(2.1, &y);
EXPECT_NOT_POISONED(y);
}
TEST(MemorySanitizer, modff) {
float x, y;
x = modff(2.1, &y);
float y;
modff(2.1, &y);
EXPECT_NOT_POISONED(y);
}
TEST(MemorySanitizer, modfl) {
long double x, y;
x = modfl(2.1, &y);
long double y;
modfl(2.1, &y);
EXPECT_NOT_POISONED(y);
}