summaryrefslogtreecommitdiffstats
path: root/test/std/containers/unord/unord.set/allocator_mismatch.fail.cpp
blob: b87c9a24d3a58652022c0560d4d40456a8ebffc1 (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.
//
//===----------------------------------------------------------------------===//

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

#include <unordered_set>

int main()
{
    std::unordered_set<int, std::hash<int>, std::less<int>, std::allocator<long> > v;
}