Commit afe03c23 by Edward Smith-Rowland Committed by Edward Smith-Rowland

Add testsuite checks for param_type in the <random> distributions.

From-SVN: r184501
parent 89f06627
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> 2012-02-17 Benjamin Kosnik <bkoz@redhat.com>
PR libstdc++/50349 PR libstdc++/50349
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::bernoulli_distribution test_type; typedef std::bernoulli_distribution test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::binomial_distribution<int> test_type; typedef std::binomial_distribution<int> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::cauchy_distribution<double> test_type; typedef std::cauchy_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::chi_squared_distribution<double> test_type; typedef std::chi_squared_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::discrete_distribution<> test_type; typedef std::discrete_distribution<> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::exponential_distribution<double> test_type; typedef std::exponential_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::extreme_value_distribution<double> test_type; typedef std::extreme_value_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::fisher_f_distribution<double> test_type; typedef std::fisher_f_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::gamma_distribution<double> test_type; typedef std::gamma_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::geometric_distribution<int> test_type; typedef std::geometric_distribution<int> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::lognormal_distribution<double> test_type; typedef std::lognormal_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::negative_binomial_distribution<int> test_type; typedef std::negative_binomial_distribution<int> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::normal_distribution<double> test_type; typedef std::normal_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::piecewise_constant_distribution<> test_type; typedef std::piecewise_constant_distribution<> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-12-03 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::piecewise_linear_distribution<> test_type; typedef std::piecewise_linear_distribution<> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::poisson_distribution<int> test_type; typedef std::poisson_distribution<int> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::student_t_distribution<double> test_type; typedef std::student_t_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::uniform_int_distribution<int> test_type; typedef std::uniform_int_distribution<int> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::uniform_real_distribution<double> test_type; typedef std::uniform_real_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
// //
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net> // 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 // 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 // software; you can redistribute it and/or modify it under the
...@@ -32,4 +32,5 @@ test01() ...@@ -32,4 +32,5 @@ test01()
typedef std::weibull_distribution<double> test_type; typedef std::weibull_distribution<double> test_type;
typedef test_type::result_type result_type; typedef test_type::result_type result_type;
typedef test_type::param_type param_type;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment