summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/extensions/hash/specializations.fail.cpp
blob: 8eeffb5802e724cc7b2de0997e59a5e2e9883ad0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//===----------------------------------------------------------------------===//
//
//                     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.
//
//===----------------------------------------------------------------------===//

#include <assert.h>
#include <ext/hash_map>
#include <string>

int main()
{
    assert(__gnu_cxx::hash<std::string>()(std::string()) == 0);  // error
}
OpenPOWER on IntegriCloud