forked from OSchip/llvm-project
[NFC][msan] Fix assigned-unused warning
This commit is contained in:
parent
2445838f74
commit
60c0256ef1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue