diff options
author | Edward Smith-Rowland <3dw4rd@verizon.net> | 2012-02-23 02:25:00 +0000 |
---|---|---|
committer | Edward Smith-Rowland <emsr@gcc.gnu.org> | 2012-02-23 02:25:00 +0000 |
commit | afe03c233e7fc3e1d7d37ca95f2f72cab40248a0 (patch) | |
tree | 801e01a24d298603c76c4c88ac52604e644c0786 /libstdc++-v3 | |
parent | 89f066276f5d6a480ed6591e24a618666bcfe929 (diff) | |
download | gcc-afe03c233e7fc3e1d7d37ca95f2f72cab40248a0.zip gcc-afe03c233e7fc3e1d7d37ca95f2f72cab40248a0.tar.gz gcc-afe03c233e7fc3e1d7d37ca95f2f72cab40248a0.tar.bz2 |
Add testsuite checks for param_type in the <random> distributions.
From-SVN: r184501
Diffstat (limited to 'libstdc++-v3')
21 files changed, 83 insertions, 20 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index eee0392..eff982f 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,46 @@ +2012-02-14 Edward Smith-Rowland <3dw4rd@verizon.net> + + * testsuite/26_numerics/random/ + uniform_real_distribution/requirements/typedefs.cc: Check param_type. + * testsuite/26_numerics/random/ + piecewise_constant_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + chi_squared_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + normal_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + uniform_int_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + poisson_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + bernoulli_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + discrete_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + weibull_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + cauchy_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + negative_binomial_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + gamma_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + fisher_f_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + exponential_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + binomial_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + lognormal_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + extreme_value_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + piecewise_linear_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + student_t_distribution/requirements/typedefs.cc: Ditto. + * testsuite/26_numerics/random/ + geometric_distribution/requirements/typedefs.cc: Ditto. + 2012-02-17 Benjamin Kosnik <bkoz@redhat.com> PR libstdc++/50349 diff --git a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/requirements/typedefs.cc index adea635..71cffdb 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::bernoulli_distribution test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/requirements/typedefs.cc index e60fac1..1f14321 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::binomial_distribution<int> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/requirements/typedefs.cc index 3d80d2d..933fcde 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::cauchy_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/requirements/typedefs.cc index 271e0fe..d472032 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::chi_squared_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/requirements/typedefs.cc index 7c5977b..ef4739b 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::discrete_distribution<> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/requirements/typedefs.cc index 7c696e2..a2357b5 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::exponential_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/requirements/typedefs.cc index 8f5d99d..28fe406 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::extreme_value_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/requirements/typedefs.cc index a92727d..0a9b2be 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::fisher_f_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/requirements/typedefs.cc index a1d15575e..35b4976 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::gamma_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/requirements/typedefs.cc index cc03ebf0..6e2a420 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::geometric_distribution<int> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/requirements/typedefs.cc index 2e3ade6..4122877 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::lognormal_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/requirements/typedefs.cc index 5b30fda..2097da2 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::negative_binomial_distribution<int> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/requirements/typedefs.cc index 471379d..f0c0479 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/normal_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::normal_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/requirements/typedefs.cc index c0d458e..633cd54 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::piecewise_constant_distribution<> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/requirements/typedefs.cc index cb1d016..1a4f5f6 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::piecewise_linear_distribution<> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/requirements/typedefs.cc index d6a6002..2fcf598 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::poisson_distribution<int> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/requirements/typedefs.cc index e090b35..6ee131f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::student_t_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/requirements/typedefs.cc index 3d584b5..fb40759 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::uniform_int_distribution<int> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/requirements/typedefs.cc index c14182f..147bd0d 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::uniform_real_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } diff --git a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/requirements/typedefs.cc b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/requirements/typedefs.cc index 5c8d8e0..05cc31f 100644 --- a/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/requirements/typedefs.cc +++ b/libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/requirements/typedefs.cc @@ -4,7 +4,7 @@ // // 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // -// Copyright (C) 2008, 2009 Free Software Foundation, Inc. +// Copyright (C) 2008, 2009, 2012 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 @@ -32,4 +32,5 @@ test01() typedef std::weibull_distribution<double> test_type; typedef test_type::result_type result_type; + typedef test_type::param_type param_type; } |