1ce32e057SArthur O'Dwyer //===----------------------------------------------------------------------===// 2ce32e057SArthur O'Dwyer // 3ce32e057SArthur O'Dwyer // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4ce32e057SArthur O'Dwyer // See https://llvm.org/LICENSE.txt for license information. 5ce32e057SArthur O'Dwyer // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6ce32e057SArthur O'Dwyer // 7ce32e057SArthur O'Dwyer //===----------------------------------------------------------------------===// 8ce32e057SArthur O'Dwyer 9ce32e057SArthur O'Dwyer // <map> 10ce32e057SArthur O'Dwyer // The container's value type must be the same as the allocator's value type 11ce32e057SArthur O'Dwyer 12ce32e057SArthur O'Dwyer #include <map> 13ce32e057SArthur O'Dwyer 14ce32e057SArthur O'Dwyer std::map<int, int, std::less<int>, std::allocator<long> > m; 15*9bb9ec38SLouis Dionne // expected-error-re@*:* {{static assertion failed{{.*}}Allocator::value_type must be same type as value_type}} 16