Index: test/cctest/test-dataflow.cc |
=================================================================== |
--- test/cctest/test-dataflow.cc (revision 4056) |
+++ test/cctest/test-dataflow.cc (working copy) |
@@ -61,6 +61,20 @@ |
} |
{ |
+ BitVector v(15); |
+ v.Add(0); |
+ BitVector w = v; |
Kevin Millikin (Chromium)
2010/03/09 09:38:10
This is not testing the assignment operator.
fschneider
2010/03/09 09:51:53
Done.
|
+ CHECK(w.Contains(0)); |
+ w.Add(1); |
+ BitVector u(w); |
+ CHECK(u.Contains(0)); |
+ CHECK(u.Contains(1)); |
+ v.Union(w); |
+ CHECK(v.Contains(0)); |
+ CHECK(v.Contains(1)); |
+ } |
+ |
+ { |
BitVector v(35); |
v.Add(0); |
BitVector w(35); |