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 | |
16 | int main(int, char**) { |
17 | ca_allocs.push_back(x: 0); |
18 | for ([[maybe_unused]] const auto& a : ca_allocs) |
19 | ; |
20 | |
21 | return 0; |
22 | } |
23 | |