summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libcxx/test/containers/sequences/vector/const_value_type.pass.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/libcxx/test/containers/sequences/vector/const_value_type.pass.cpp b/libcxx/test/containers/sequences/vector/const_value_type.pass.cpp
new file mode 100644
index 00000000000..7953fb334e8
--- /dev/null
+++ b/libcxx/test/containers/sequences/vector/const_value_type.pass.cpp
@@ -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};
+}
OpenPOWER on IntegriCloud