[msan] Simplify test code.

llvm-svn: 173155
This commit is contained in:
Evgeniy Stepanov 2013-01-22 12:33:11 +00:00
parent 2b65c0d1cf
commit f9a7aba34a
1 changed files with 2 additions and 4 deletions

View File

@ -1335,10 +1335,8 @@ struct VolatileBitfieldStruct {
TEST(MemorySanitizer, VolatileBitfield) {
VolatileBitfieldStruct *S = new VolatileBitfieldStruct;
S->x = 1;
unsigned tmp = S->x;
EXPECT_NOT_POISONED(tmp);
tmp = S->y;
EXPECT_POISONED(S->y);
EXPECT_NOT_POISONED((unsigned)S->x);
EXPECT_POISONED((unsigned)S->y);
}
TEST(MemorySanitizerDr, StoreInDSOTest) {