]> git.ipfire.org Git - thirdparty/gcc.git/blame - libstdc++-v3/testsuite/ext/pb_ds/regression/trie_data_map_rand.cc
re PR testsuite/39696 (gcc.dg/tree-ssa/ssa-ccp-25.c scan-tree-dump doesn't work on...
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / ext / pb_ds / regression / trie_data_map_rand.cc
CommitLineData
4569a895
AT
1// { dg-options "-DPB_DS_REGRESSION" }
2// -*- C++ -*-
3
4// Copyright (C) 2005, 2006 Free Software Foundation, Inc.
5//
6// This file is part of the GNU ISO C++ Library. This library is free
7// software; you can redistribute it and/or modify it under the terms
8// of the GNU General Public License as published by the Free Software
9// Foundation; either version 2, or (at your option) any later
10// version.
11
12// This library is distributed in the hope that it will be useful, but
13// WITHOUT ANY WARRANTY; without even the implied warranty of
14// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15// General Public License for more details.
16
17// You should have received a copy of the GNU General Public License
18// along with this library; see the file COPYING. If not, write to
19// the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
20// MA 02111-1307, USA.
21
22// As a special exception, you may use this file as part of a free
23// software library without restriction. Specifically, if other files
24// instantiate templates or use macros or inline functions from this
25// file, or you compile this file and link it with other files to
26// produce an executable, this file does not by itself cause the
27// resulting executable to be covered by the GNU General Public
28// License. This exception does not however invalidate any other
29// reasons why the executable file might be covered by the GNU General
30// Public License.
31
32// Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
33
34// Permission to use, copy, modify, sell, and distribute this software
35// is hereby granted without fee, provided that the above copyright
36// notice appears in all copies, and that both that copyright notice
37// and this permission notice appear in supporting documentation. None
38// of the above authors, nor IBM Haifa Research Laboratories, make any
39// representation about the suitability of this software for any
40// purpose. It is provided "as is" without express or implied
41// warranty.
42
43/**
44 * @file trie_data_map_rand_regression_test.cpp
45 * Contains a random-operation test for maps and sets.
46 */
47
eb0619fe
DJ
48// { dg-require-time "" }
49
4569a895 50#include <regression/rand/assoc/rand_regression_test.hpp>
2e3f9c21 51#include <regression/common_type.hpp>
4569a895 52
ed445ba3
HPN
53// This can take long on simulators, timing out the test.
54// { dg-options "-DPB_DS_REGRESSION -DITERATIONS=5" { target simulator } }
43b2b720 55// { dg-timeout-factor 2.0 }
ed445ba3
HPN
56#ifndef ITERATIONS
57#define ITERATIONS 5000
58#endif
59#ifndef KEYS
60#define KEYS 10000
61#endif
4569a895
AT
62int
63main(int argc, char* a_p_argv[])
64{
5e11f978 65 using namespace __gnu_pbds::test;
4569a895
AT
66 typedef trie_map_tl_t map_tl_t;
67
ed445ba3 68 return rand_regression_test(ITERATIONS, KEYS,
4569a895
AT
69 "trie_data_map_rand_regression_test",
70 map_tl_t());
71}
72