• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // <unordered_set>
10 
11 // template <class Value, class Hash = hash<Value>, class Pred = equal_to<Value>,
12 //           class Alloc = allocator<Value>>
13 // class unordered_set
14 
15 // size_type bucket(const key_type& __k) const;
16 
17 // UNSUPPORTED: libcxx-no-debug-mode
18 
19 // ADDITIONAL_COMPILE_FLAGS: -D_LIBCPP_DEBUG=1
20 #define _LIBCPP_ASSERT(x, m) ((x) ? (void)0 : std::exit(0))
21 
22 #include <unordered_set>
23 #include <cassert>
24 
25 #include "test_macros.h"
26 
main(int,char **)27 int main(int, char**) {
28     typedef std::unordered_set<int> C;
29     C c;
30     (void) c.bucket(3);
31     assert(false);
32 
33     return 0;
34 }
35