diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2013-06-07 14:24:18 +0000 |
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2013-06-07 14:24:18 +0000 |
| commit | e7b6d544f090a3af1d01fd46c006e6e3cc94cd00 (patch) | |
| tree | 6d0ac2cdb44238f9abdc0274784696aa37e16cf8 /libcxx/test | |
| parent | 2566e0498cdfb5aaa4f69a549be49d1122b3e863 (diff) | |
| download | bcm5719-llvm-e7b6d544f090a3af1d01fd46c006e6e3cc94cd00.tar.gz bcm5719-llvm-e7b6d544f090a3af1d01fd46c006e6e3cc94cd00.zip | |
Test case for r183481.
llvm-svn: 183522
Diffstat (limited to 'libcxx/test')
| -rw-r--r-- | libcxx/test/containers/sequences/vector/const_value_type.pass.cpp | 20 |
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}; +} |

