Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(199)

Unified Diff: runtime/vm/bit_vector_test.cc

Issue 10914314: Simple redundant load elimination. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: runtime/vm/bit_vector_test.cc
===================================================================
--- runtime/vm/bit_vector_test.cc (revision 12420)
+++ runtime/vm/bit_vector_test.cc (working copy)
@@ -83,6 +83,17 @@
EXPECT_EQ(false, a->Contains(64));
EXPECT_EQ(false, a->Contains(96));
}
+
+ { BitVector* a = new BitVector(33);
+ BitVector* b = new BitVector(33);
+ a->SetAll();
+ b->Add(0);
+ b->Add(1);
+ b->Add(31);
+ b->Add(32);
+ EXPECT_EQ(true, a->Intersect(*b));
+ EXPECT_EQ(true, a->Equals(*b));
+ }
}
} // namespace dart

Powered by Google App Engine
This is Rietveld 408576698