[libcxx] r183522 - Test case for r183481.

Howard Hinnant hhinnant at apple.com
Fri Jun 7 07:24:19 PDT 2013


Author: hhinnant
Date: Fri Jun  7 09:24:18 2013
New Revision: 183522

URL: http://llvm.org/viewvc/llvm-project?rev=183522&view=rev
Log:
Test case for r183481.

Added:
    libcxx/trunk/test/containers/sequences/vector/const_value_type.pass.cpp

Added: libcxx/trunk/test/containers/sequences/vector/const_value_type.pass.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/test/containers/sequences/vector/const_value_type.pass.cpp?rev=183522&view=auto
==============================================================================
--- libcxx/trunk/test/containers/sequences/vector/const_value_type.pass.cpp (added)
+++ libcxx/trunk/test/containers/sequences/vector/const_value_type.pass.cpp Fri Jun  7 09:24:18 2013
@@ -0,0 +1,20 @@
+//===----------------------------------------------------------------------===//
+//
+//                     The LLVM Compiler Infrastructure
+//
+// This file is dual licensed under the MIT and the University of Illinois Open
+// Source Licenses. See LICENSE.TXT for details.
+//
+//===----------------------------------------------------------------------===//
+
+// <vector>
+
+// vector<const int> v;  // an extension
+
+#include <vector>
+#include <type_traits>
+
+int main()
+{
+    std::vector<const int> v = {1, 2, 3};
+}





More information about the cfe-commits mailing list