xref: /llvm-project/libcxx/test/std/containers/sequences/deque/allocator_mismatch.verify.cpp (revision 9bb9ec380ace81d040d3a0a0a2ae9a75733ab330)
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 // <deque>
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 <deque>
13ce32e057SArthur O'Dwyer 
14ce32e057SArthur O'Dwyer std::deque<int, std::allocator<long> > d;
15*9bb9ec38SLouis Dionne   // expected-error-re@*:* {{static assertion failed{{.*}}Allocator::value_type must be same type as value_type}}
16