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 // XFAIL: libcpp-has-debug-mode 11 12 #include <algorithm> 13 #include <vector> 14 15 std::vector<int> ca_allocs; 16 main(int,char **)17int main(int, char**) { 18 ca_allocs.push_back(0); 19 for ([[maybe_unused]] const auto& a : ca_allocs) 20 ; 21 22 return 0; 23 } 24