Chromium Code Reviews| Index: third_party/WebKit/Source/wtf/VectorTest.cpp |
| diff --git a/third_party/WebKit/Source/wtf/VectorTest.cpp b/third_party/WebKit/Source/wtf/VectorTest.cpp |
| index f0d164d3aac1608a63f989e6e4eda09842288021..cdb659f91ec21c58762226029328bc51a5fd3620 100644 |
| --- a/third_party/WebKit/Source/wtf/VectorTest.cpp |
| +++ b/third_party/WebKit/Source/wtf/VectorTest.cpp |
| @@ -688,6 +688,13 @@ TEST(VectorTest, InitializerList) |
| EXPECT_EQ(3, vector3[2]); |
| } |
| +static_assert(VectorTraits<int>::canCopyWithMemcpy, "int should be copied with memcopy."); |
| +static_assert(VectorTraits<char>::canCopyWithMemcpy, "char should be copied with memcpy."); |
| +static_assert(VectorTraits<LChar>::canCopyWithMemcpy, "LChar should be copied with memcpy."); |
| +static_assert(VectorTraits<UChar>::canCopyWithMemcpy, "UChar should be copied with memcpy."); |
| + |
| +static_assert(IsAssignable<int, const int&>::value, "aa"); |
|
tzik
2016/06/30 08:06:01
Could you update "aa"?
Yuta Kitamura
2016/06/30 08:11:13
Whoops, done.
|
| + |
| } // anonymous namespace |
| } // namespace WTF |