diff options
Diffstat (limited to 'clang/unittests/AST/ASTVectorTest.cpp')
| -rw-r--r-- | clang/unittests/AST/ASTVectorTest.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/AST/ASTVectorTest.cpp b/clang/unittests/AST/ASTVectorTest.cpp index 3a8e8e89b6e..23c52be5b12 100644 --- a/clang/unittests/AST/ASTVectorTest.cpp +++ b/clang/unittests/AST/ASTVectorTest.cpp @@ -72,7 +72,8 @@ TEST_F(ASTVectorTest, InsertEmpty) { ASTVector<double> V; // Ensure no pointer overflow when inserting empty range - std::vector<int> IntVec{0, 1, 2, 3}; + int Values[] = { 0, 1, 2, 3 }; + std::vector<int> IntVec(Values, Values + 4); auto I = V.insert(Ctxt, V.begin(), IntVec.begin(), IntVec.begin()); ASSERT_EQ(V.begin(), I); ASSERT_TRUE(V.empty()); |

