diff --git a/unittests/ADT/ArrayRefTest.cpp b/unittests/ADT/ArrayRefTest.cpp index c6854aed4b6..4d77c478f48 100644 --- a/unittests/ADT/ArrayRefTest.cpp +++ b/unittests/ADT/ArrayRefTest.cpp @@ -91,7 +91,7 @@ TEST(ArrayRefTest, ConstConvert) { } TEST(ArrayRefTest, InitializerList) { - ArrayRef A{ 0, 1, 2, 3, 4 }; + ArrayRef A = { 0, 1, 2, 3, 4 }; for (int i = 0; i < 5; ++i) EXPECT_EQ(i, A[i]); }