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