[PATCH] D23890: Fix ArrayRef initializer_list Ctor Test
Erich Keane via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 25 14:46:50 PDT 2016
erichkeane updated the summary for this revision.
erichkeane updated this revision to Diff 69295.
erichkeane added a comment.
Redundant test removed
Repository:
rL LLVM
https://reviews.llvm.org/D23890
Files:
unittests/ADT/ArrayRefTest.cpp
Index: unittests/ADT/ArrayRefTest.cpp
===================================================================
--- unittests/ADT/ArrayRefTest.cpp
+++ 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.69295.patch
Type: text/x-patch
Size: 431 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160825/723bceea/attachment.bin>
More information about the llvm-commits
mailing list