forked from OSchip/llvm-project
Addressing a post-commit review comment suggesting to avoid using direct initialization.
llvm-svn: 229512
This commit is contained in:
parent
ab7e86e5be
commit
fb28a60d6d
|
@ -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]);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue