| 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..74b08ca5bdc19e93e4113672f360496a65966b2a 100644
|
| --- a/third_party/WebKit/Source/wtf/VectorTest.cpp
|
| +++ b/third_party/WebKit/Source/wtf/VectorTest.cpp
|
| @@ -688,6 +688,14 @@ 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.");
|
| +
|
| +class UnknownType;
|
| +static_assert(VectorTraits<UnknownType*>::canCopyWithMemcpy, "Pointers should be copied with memcpy.");
|
| +
|
| } // anonymous namespace
|
|
|
| } // namespace WTF
|
|
|