//===----------------------------------------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // Hashing a struct w/o a defined hash should fail. #include #include #include struct X {}; int main(int, char**) { X x; size_t h = std::hash{} ( x ); return 0; }