Add missing dg-require-cstdint directives to tests
[official-gcc.git] / libstdc++-v3 / testsuite / ext / pb_ds / regression / priority_queue_rand.cc
blobfd77e9b7e75e1d71e37025d0844bdb3605993585
1 // __gnu_pbds::test::basic_type has ambiguous string conversions in C++17
2 // { dg-do run { target { ! c++17 } } }
3 // { dg-require-time "" }
4 // { dg-require-cstdint "" }
5 // This can take long on simulators, timing out the test.
6 // { dg-options "-DITERATIONS=5" { target simulator } }
7 // { dg-timeout-factor 2.0 }
9 // -*- C++ -*-
11 // Copyright (C) 2005-2018 Free Software Foundation, Inc.
13 // This file is part of the GNU ISO C++ Library. This library is free
14 // software; you can redistribute it and/or modify it under the terms
15 // of the GNU General Public License as published by the Free Software
16 // Foundation; either version 3, or (at your option) any later
17 // version.
19 // This library is distributed in the hope that it will be useful, but
20 // WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 // General Public License for more details.
24 // You should have received a copy of the GNU General Public License
25 // along with this library; see the file COPYING3. If not see
26 // <http://www.gnu.org/licenses/>.
29 // Copyright (C) 2004 Ami Tavory and Vladimir Dreizin, IBM-HRL.
31 // Permission to use, copy, modify, sell, and distribute this software
32 // is hereby granted without fee, provided that the above copyright
33 // notice appears in all copies, and that both that copyright notice
34 // and this permission notice appear in supporting documentation. None
35 // of the above authors, nor IBM Haifa Research Laboratories, make any
36 // representation about the suitability of this software for any
37 // purpose. It is provided "as is" without express or implied
38 // warranty.
40 /**
41 * @file priority_queue_rand_regression_test.cpp
42 * Contains a random-operation test for priority queues.
45 #define PB_DS_REGRESSION
47 #include <regression/rand/priority_queue/rand_regression_test.hpp>
48 #include <regression/common_type.hpp>
50 #ifndef ITERATIONS
51 #define ITERATIONS 5000
52 #endif
53 #ifndef KEYS
54 #define KEYS 10000
55 #endif
56 int
57 main(int argc, char* a_p_argv[])
59 using namespace __gnu_pbds::test;
60 return rand_regression_test(ITERATIONS, KEYS,
61 "pq_no_data_map_rand_regression_test",
62 pq_tl_t());