diff options
Diffstat (limited to 'libcxx/test/std/numerics/rand/rand.predef/ranlux48.pass.cpp')
-rw-r--r-- | libcxx/test/std/numerics/rand/rand.predef/ranlux48.pass.cpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/libcxx/test/std/numerics/rand/rand.predef/ranlux48.pass.cpp b/libcxx/test/std/numerics/rand/rand.predef/ranlux48.pass.cpp new file mode 100644 index 00000000000..f15dfd5493e --- /dev/null +++ b/libcxx/test/std/numerics/rand/rand.predef/ranlux48.pass.cpp @@ -0,0 +1,22 @@ +//===----------------------------------------------------------------------===// +// +// The LLVM Compiler Infrastructure +// +// This file is dual licensed under the MIT and the University of Illinois Open +// Source Licenses. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +// <random> + +// typedef discard_block_engine<ranlux48_base, 389, 11> ranlux48; + +#include <random> +#include <cassert> + +int main() +{ + std::ranlux48 e; + e.discard(9999); + assert(e() == 249142670248501ull); +} |