1 //===----------------------------------------------------------------------===// 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 17 int main() 18 { 19 #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS 20 std::vector<const int> v = {1, 2, 3}; 21 #endif 22 } 23