| 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-exception |
| 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | // ADDITIONAL_COMPILE_FLAGS: -Wno-deprecated |
| 10 | |
| 11 | #include <assert.h> |
| 12 | #include <ext/hash_map> |
| 13 | #include <string> |
| 14 | |
| 15 | int 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 | |