summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/strings/basic.string/allocator_mismatch.fail.cpp
blob: 644137ec257664563dfdf41a1c3df166a62b5a75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//===----------------------------------------------------------------------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//

// <string>
//   The container's value type must be the same as the allocator's value type

#include <string>

int main()
{
    std::basic_string<char, std::char_traits<char>, std::allocator<int> > s;
}
OpenPOWER on IntegriCloud