OSDN Git Service

Add testsuite checks for param_type in the <random> distributions.
authoremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Feb 2012 02:25:00 +0000 (02:25 +0000)
committeremsr <emsr@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 23 Feb 2012 02:25:00 +0000 (02:25 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@184501 138bc75d-0d04-0410-961f-82ee72b054a4

21 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/26_numerics/random/bernoulli_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/binomial_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/cauchy_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/chi_squared_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/discrete_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/exponential_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/extreme_value_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/fisher_f_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/gamma_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/geometric_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/lognormal_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/negative_binomial_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/normal_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/piecewise_constant_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/piecewise_linear_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/poisson_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/student_t_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/uniform_int_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/uniform_real_distribution/requirements/typedefs.cc
libstdc++-v3/testsuite/26_numerics/random/weibull_distribution/requirements/typedefs.cc

index eee0392..eff982f 100644 (file)
@@ -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
index adea635..71cffdb 100644 (file)
@@ -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;
 }
index e60fac1..1f14321 100644 (file)
@@ -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;
 }
index 3d80d2d..933fcde 100644 (file)
@@ -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;
 }
index 271e0fe..d472032 100644 (file)
@@ -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;
 }
index 7c5977b..ef4739b 100644 (file)
@@ -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;
 }
index 7c696e2..a2357b5 100644 (file)
@@ -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;
 }
index 8f5d99d..28fe406 100644 (file)
@@ -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;
 }
index a92727d..0a9b2be 100644 (file)
@@ -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;
 }
index a1d1557..35b4976 100644 (file)
@@ -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;
 }
index cc03ebf..6e2a420 100644 (file)
@@ -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;
 }
index 2e3ade6..4122877 100644 (file)
@@ -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;
 }
index 5b30fda..2097da2 100644 (file)
@@ -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;
 }
index 471379d..f0c0479 100644 (file)
@@ -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;
 }
index c0d458e..633cd54 100644 (file)
@@ -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;
 }
index cb1d016..1a4f5f6 100644 (file)
@@ -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;
 }
index d6a6002..2fcf598 100644 (file)
@@ -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;
 }
index e090b35..6ee131f 100644 (file)
@@ -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;
 }
index 3d584b5..fb40759 100644 (file)
@@ -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;
 }
index c14182f..147bd0d 100644 (file)
@@ -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;
 }
index 5c8d8e0..05cc31f 100644 (file)
@@ -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;
 }