[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / containers / unord / unord.multimap / incomplete.pass.cpp
blob5d76e6f83e9892dc88fd1c651c41c53d032b3643
2 //===----------------------------------------------------------------------===//
3 //
4 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
5 // See https://llvm.org/LICENSE.txt for license information.
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //
8 //===----------------------------------------------------------------------===//
10 // <unordered_map>
12 // Check that std::unordered_multimap and its iterators can be instantiated with an incomplete
13 // type.
15 #include <unordered_map>
17 #include "test_macros.h"
19 template <class Tp>
20 struct MyHash {
21 MyHash() {}
22 std::size_t operator()(Tp const&) const {return 42;}
25 struct A {
26 typedef std::unordered_multimap<A, A, MyHash<A> > Map;
27 Map m;
28 Map::iterator it;
29 Map::const_iterator cit;
30 Map::local_iterator lit;
31 Map::const_local_iterator clit;
34 inline bool operator==(A const& L, A const& R) { return &L == &R; }
36 int main(int, char**) {
37 A a;
39 return 0;