xref: /llvm-project/libcxx/test/std/containers/sequences/vector/constant_initialization.pass.cpp (revision b5270ba20dc3d84df9d880be11d57667f04c6c28)
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 
9 // UNSUPPORTED: c++03
10 
11 #include <algorithm>
12 #include <vector>
13 
14 std::vector<int> ca_allocs;
15 
main(int,char **)16 int main(int, char**) {
17   ca_allocs.push_back(0);
18   for ([[maybe_unused]] const auto& a : ca_allocs)
19     ;
20 
21   return 0;
22 }
23