mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
Addressing a post-commit review comment suggesting to avoid using direct initialization.
llvm-svn: 229512
This commit is contained in:
parent
0117b06b3f
commit
49e7dd6b8e
@ -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…
x
Reference in New Issue
Block a user