blob: e16e439dec4dcbb37b1d9210a9df9515db2d2d26 [file] [log] [blame]
Howard Hinnantee749a42013-06-07 14:24:18 +00001//===----------------------------------------------------------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is dual licensed under the MIT and the University of Illinois Open
6// Source Licenses. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10// <vector>
11
12// vector<const int> v; // an extension
13
14#include <vector>
15#include <type_traits>
16
17int main()
18{
Dan Albert1d4a1ed2016-05-25 22:36:09 -070019#ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS
Howard Hinnantee749a42013-06-07 14:24:18 +000020 std::vector<const int> v = {1, 2, 3};
Dan Albert1d4a1ed2016-05-25 22:36:09 -070021#endif
Howard Hinnantee749a42013-06-07 14:24:18 +000022}