brintos

brintos / llvm-project-archived public Read only

0
0
Text · 635 B · 5a74a52 Raw
20 lines · cpp
1//===----------------------------------------------------------------------===//2//3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.4// See https://llvm.org/LICENSE.txt for license information.5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception6//7//===----------------------------------------------------------------------===//8 9// ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated10 11#include <assert.h>12#include <ext/hash_map>13#include <string>14 15int main(int, char**) {16  assert(__gnu_cxx::hash<std::string>()(std::string()) == 0); // expected-error {{does not provide a call operator}}17 18  return 0;19}20