projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add an insert() method to MapVector. Adds the first MapVector unit test.
[oota-llvm.git]
/
unittests
/
ADT
/
PackedVectorTest.cpp
diff --git
a/unittests/ADT/PackedVectorTest.cpp
b/unittests/ADT/PackedVectorTest.cpp
index 19087abaf370a69fe9295901a14abb0227d735c6..55b5d8d049ddd544dbcaea4bd3fa69270472a7bf 100644
(file)
--- a/
unittests/ADT/PackedVectorTest.cpp
+++ b/
unittests/ADT/PackedVectorTest.cpp
@@
-74,6
+74,8
@@
TEST(PackedVectorTest, Operation) {
EXPECT_EQ(3U, Vec[1]);
}
+#ifdef EXPECT_DEBUG_DEATH
+
TEST(PackedVectorTest, UnsignedValues) {
PackedVector<unsigned, 2> Vec(1);
Vec[0] = 0;
@@
-106,6
+108,8
@@
TEST(PackedVectorTest, SignedValues) {
EXPECT_DEBUG_DEATH(Vec[0] = 4, "value is too big");
}
+#endif
+
}
#endif