]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/ext/pb_ds/regression/hash_map_rand.cc
Update copyright years.
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / ext / pb_ds / regression / hash_map_rand.cc
CommitLineData
c4296692 1// __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
7b936140 2// { dg-do run { target { ! c++17 } } }
cb2168c9
BK
3// { dg-require-time "" }
4// This can take long on simulators, timing out the test.
5// { dg-options "-DITERATIONS=5" { target simulator } }
6// { dg-timeout-factor 2.0 }
7
4569a895
AT
8// -*- C++ -*-
9
85ec4feb 10// Copyright (C) 2005-2018 Free Software Foundation, Inc.
4569a895
AT
11//
12// This file is part of the GNU ISO C++ Library. This library is free
13// software; you can redistribute it and/or modify it under the terms
14// of the GNU General Public License as published by the Free Software
748086b7 15// Foundation; either version 3, or (at your option) any later
4569a895
AT
16// version.
17
18// This library is distributed in the hope that it will be useful, but
19// WITHOUT ANY WARRANTY; without even the implied warranty of
20// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21// General Public License for more details.
22
23// You should have received a copy of the GNU General Public License
748086b7
JJ
24// along with this library; see the file COPYING3. If not see
25// <http://www.gnu.org/licenses/>.
4569a895 26
4569a895
AT
27
28// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
29
30// Permission to use, copy, modify, sell, and distribute this software
31// is hereby granted without fee, provided that the above copyright
32// notice appears in all copies, and that both that copyright notice
33// and this permission notice appear in supporting documentation. None
34// of the above authors, nor IBM Haifa Research Laboratories, make any
35// representation about the suitability of this software for any
36// purpose. It is provided "as is" without express or implied
37// warranty.
38
39/**
40 * @file hash_data_map_rand_regression_test.cpp
41 * Contains a random-operation test for maps and sets.
42 */
43
cb2168c9 44#define PB_DS_REGRESSION
eb0619fe 45
4569a895 46#include <regression/rand/assoc/rand_regression_test.hpp>
2e3f9c21 47#include <regression/common_type.hpp>
4569a895 48
ed445ba3 49#ifndef ITERATIONS
191e7a30
BK
50# ifdef _GLIBCXX_DEBUG
51# define ITERATIONS 100
52# else
53# define ITERATIONS 5000
ed445ba3 54#endif
191e7a30
BK
55#endif
56
ed445ba3 57#ifndef KEYS
191e7a30
BK
58# ifdef _GLIBCXX_DEBUG
59# define KEYS 200
60# else
61# define KEYS 10000
62# endif
ed445ba3 63#endif
191e7a30 64
4569a895
AT
65int
66main(int argc, char* a_p_argv[])
67{
5e11f978 68 using namespace __gnu_pbds::test;
4569a895
AT
69 typedef hash_map_tl_t map_tl_t;
70
ed445ba3 71 return rand_regression_test(ITERATIONS, KEYS,
4569a895
AT
72 "hash_data_map_rand_regression_test",
73 map_tl_t());
74}
75