Howard Hinnant | ee749a4 | 2013-06-07 14:24:18 +0000 | [diff] [blame] | 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 | { |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 19 | #ifndef _LIBCPP_HAS_NO_GENERALIZED_INITIALIZERS |
Howard Hinnant | ee749a4 | 2013-06-07 14:24:18 +0000 | [diff] [blame] | 20 | std::vector<const int> v = {1, 2, 3}; |
Dan Albert | 1d4a1ed | 2016-05-25 22:36:09 -0700 | [diff] [blame^] | 21 | #endif |
Howard Hinnant | ee749a4 | 2013-06-07 14:24:18 +0000 | [diff] [blame] | 22 | } |