hanchenye-llvm-project/libcxx/test/extensions/hash/specializations.fail.cpp

18 lines
509 B
C++

//===----------------------------------------------------------------------===//
//
// 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
}