[PATCH] D23890: Fix ArrayRef initializer_list Ctor Test

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 25 15:17:34 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL279783: Fix ArrayRef initializer_list Ctor Test (authored by dblaikie).

Changed prior to commit:
  https://reviews.llvm.org/D23890?vs=69295&id=69298#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23890

Files:
  llvm/trunk/unittests/ADT/ArrayRefTest.cpp

Index: llvm/trunk/unittests/ADT/ArrayRefTest.cpp
===================================================================
--- llvm/trunk/unittests/ADT/ArrayRefTest.cpp
+++ llvm/trunk/unittests/ADT/ArrayRefTest.cpp
@@ -134,7 +134,8 @@
 }
 
 TEST(ArrayRefTest, InitializerList) {
-  ArrayRef<int> A = { 0, 1, 2, 3, 4 };
+  std::initializer_list<int> init_list = { 0, 1, 2, 3, 4 };
+  ArrayRef<int> A = init_list;
   for (int i = 0; i < 5; ++i)
     EXPECT_EQ(i, A[i]);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23890.69298.patch
Type: text/x-patch
Size: 464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160825/aed3ac2e/attachment.bin>


More information about the llvm-commits mailing list