17 lines · plain
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-exception6//7//===----------------------------------------------------------------------===//8 9// Make sure that we don't get a compiler error when trying to use std::vector::erase10// from Objective-C++. This happened in Objective-C++ mode with modules enabled (rdar://106813461).11 12// REQUIRES: objective-c++13 14#include <vector>15 16void f(std::vector<int> vec, std::vector<int>::iterator it) { (void)vec.erase(it); }17