Addressing a post-commit review comment suggesting to avoid using direct initialization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229512 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Aaron Ballman 2015-02-17 16:57:05 +00:00
parent 1115b2c27e
commit fc25a7429b

View File

@ -91,7 +91,7 @@ TEST(ArrayRefTest, ConstConvert) {
}
TEST(ArrayRefTest, InitializerList) {
ArrayRef<int> A{ 0, 1, 2, 3, 4 };
ArrayRef<int> A = { 0, 1, 2, 3, 4 };
for (int i = 0; i < 5; ++i)
EXPECT_EQ(i, A[i]);
}