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::map::find10// from Objective-C++. This happened in Objective-C++ mode with modules enabled (rdar://106813461).11 12// REQUIRES: objective-c++13 14#include <map>15 16void f(std::map<int, int> const& map, int key) { (void)map.find(key); }17