diff options
| author | Howard Hinnant <hhinnant@apple.com> | 2010-05-17 13:44:27 +0000 | 
|---|---|---|
| committer | Howard Hinnant <hhinnant@apple.com> | 2010-05-17 13:44:27 +0000 | 
| commit | 05fa30d5954324865a1ae221d7821829227017ba (patch) | |
| tree | 0e2d44fc7607560aa7fad92f0499b003f02514b9 /libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/param_copy.pass.cpp | |
| parent | 188855abef155f566d768859970312d7e09b339d (diff) | |
| download | bcm5719-llvm-05fa30d5954324865a1ae221d7821829227017ba.tar.gz bcm5719-llvm-05fa30d5954324865a1ae221d7821829227017ba.zip | |
[rand.dist.bern.geo]
llvm-svn: 103937
Diffstat (limited to 'libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/param_copy.pass.cpp')
| -rw-r--r-- | libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/param_copy.pass.cpp | 30 | 
1 files changed, 30 insertions, 0 deletions
| diff --git a/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/param_copy.pass.cpp b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/param_copy.pass.cpp new file mode 100644 index 00000000000..2e8fd8c5275 --- /dev/null +++ b/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/param_copy.pass.cpp @@ -0,0 +1,30 @@ +//===----------------------------------------------------------------------===// +// +//                     The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <random> + +// template<class IntType = int> +// class geometric_distribution +// { +//     class param_type; + +#include <random> +#include <limits> +#include <cassert> + +int main() +{ +    { +        typedef std::geometric_distribution<> D; +        typedef D::param_type param_type; +        param_type p0(.125); +        param_type p = p0; +        assert(p.p() == .125); +    } +} | 

