453def3ea1
2009-08-02 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/40912 (final) * testsuite/26_numerics/random/mt19937.cc: dg-require-cstdint. * testsuite/26_numerics/random/uniform_real_distribution/cons/ parms_neg.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/uniform_real_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ cons/range.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ cons/num_xbound_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ cons/initlist_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_constant_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/minstd_rand.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/chi_squared_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/normal_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/seed_seq/cons/ range.cc: Likewise. * testsuite/26_numerics/random/seed_seq/cons/ initlist.cc: Likewise. * testsuite/26_numerics/random/seed_seq/cons/ default.cc: Likewise. * testsuite/26_numerics/random/seed_seq/requirements/ typedefs.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/ cons/parms_neg.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/uniform_int_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/cons/ parms.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/cons/ default.cc: Likewise. * testsuite/26_numerics/random/poisson_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/bernoulli_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/ranlux24_base.cc: Likewise. * testsuite/26_numerics/random/ default_random_engine.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/ cons/range.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/ cons/initlist.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/ cons/num_xbound_fun.cc: Likewise. * testsuite/26_numerics/random/discrete_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/weibull_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ cons/base_move.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ cons/seed1.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ cons/seed2.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ cons/base_copy.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ cons/default.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ cons/seed_seq.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/independent_bits_engine/ operators/serialize.cc: Likewise. * testsuite/26_numerics/random/ranlux48_base.cc: Likewise. * testsuite/26_numerics/random/minstd_rand0.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ cons/seed1.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ cons/seed2.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ cons/default.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/subtract_with_carry_engine/ operators/serialize.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/ base_move.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/ seed1.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/ seed2.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/ base_copy.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/ default.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/cons/ seed_seq.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/discard_block_engine/ operators/serialize.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/cauchy_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/negative_binomial_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/gamma_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ cons/seed1.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ cons/seed2.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ cons/default.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/mersenne_twister_engine/ operators/serialize.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/fisher_f_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/exponential_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/binomial_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/lognormal_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/mt19937_64.cc: Likewise. * testsuite/26_numerics/random/random_device/cons/ token.cc: Likewise. * testsuite/26_numerics/random/random_device/cons/ default.cc: Likewise. * testsuite/26_numerics/random/random_device/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/ranlux24.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/extreme_value_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ cons/range.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ cons/num_xbound_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ cons/initlist_fun.cc: Likewise. * testsuite/26_numerics/random/piecewise_linear_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/student_t_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ cons/seed1.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ cons/seed2.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ cons/default.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ requirements/non_uint_neg.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/linear_congruential_engine/ operators/serialize.cc: Likewise. * testsuite/26_numerics/random/ranlux48.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/ base_move.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/ seed1.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/ seed2.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/ base_copy.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/ default.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/cons/ seed_seq.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/ operators/equal.cc: Likewise. * testsuite/26_numerics/random/shuffle_order_engine/ operators/serialize.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/ cons/parms.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/ cons/default.cc: Likewise. * testsuite/26_numerics/random/geometric_distribution/ requirements/typedefs.cc: Likewise. * testsuite/26_numerics/random/knuth_b.cc: Likewise. From-SVN: r150361
45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
// { dg-options "-std=c++0x" }
|
|
// { dg-require-cstdint "" }
|
|
//
|
|
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
|
|
//
|
|
// Copyright (C) 2008, 2009 Free Software Foundation, Inc.
|
|
//
|
|
// This file is part of the GNU ISO C++ Library. This library is free
|
|
// software; you can redistribute it and/or modify it under the
|
|
// terms of the GNU General Public License as published by the
|
|
// Free Software Foundation; either version 3, or (at your option)
|
|
// any later version.
|
|
//
|
|
// This library is distributed in the hope that it will be useful,
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
// GNU General Public License for more details.
|
|
//
|
|
// You should have received a copy of the GNU General Public License along
|
|
// with this library; see the file COPYING3. If not see
|
|
// <http://www.gnu.org/licenses/>.
|
|
|
|
// 26.4.5 Engines and egine adaptors with predefined parameters [rand.predef]
|
|
// 26.4.5 [1]
|
|
|
|
#include <random>
|
|
#include <testsuite_hooks.h>
|
|
|
|
void
|
|
test01()
|
|
{
|
|
bool test __attribute__((unused)) = true;
|
|
|
|
std::minstd_rand0 a;
|
|
a.discard(9999);
|
|
|
|
VERIFY( a() == 1043618065 );
|
|
}
|
|
|
|
int main()
|
|
{
|
|
test01();
|
|
return 0;
|
|
}
|