summaryrefslogtreecommitdiffstats
path: root/libcxx/test/numerics/rand/rand.predef
diff options
context:
space:
mode:
Diffstat (limited to 'libcxx/test/numerics/rand/rand.predef')
-rw-r--r--libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp22
-rw-r--r--libcxx/test/numerics/rand/rand.predef/knuth_b.pass.cpp22
-rw-r--r--libcxx/test/numerics/rand/rand.predef/minstd_rand.pass.cpp23
-rw-r--r--libcxx/test/numerics/rand/rand.predef/minstd_rand0.pass.cpp23
-rw-r--r--libcxx/test/numerics/rand/rand.predef/mt19937.pass.cpp27
-rw-r--r--libcxx/test/numerics/rand/rand.predef/mt19937_64.pass.cpp27
-rw-r--r--libcxx/test/numerics/rand/rand.predef/ranlux24.pass.cpp22
-rw-r--r--libcxx/test/numerics/rand/rand.predef/ranlux24_base.pass.cpp22
-rw-r--r--libcxx/test/numerics/rand/rand.predef/ranlux48.pass.cpp22
-rw-r--r--libcxx/test/numerics/rand/rand.predef/ranlux48_base.pass.cpp22
10 files changed, 0 insertions, 232 deletions
diff --git a/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp b/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp
deleted file mode 100644
index 426586007c1..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/default_random_engine.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 minstd_rand0 default_random_engine;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::default_random_engine e;
- e.discard(9999);
- assert(e() == 399268537u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/knuth_b.pass.cpp b/libcxx/test/numerics/rand/rand.predef/knuth_b.pass.cpp
deleted file mode 100644
index 69627d79e90..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/knuth_b.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 shuffle_order_engine<minstd_rand0, 256> knuth_b;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::knuth_b e;
- e.discard(9999);
- assert(e() == 1112339016u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/minstd_rand.pass.cpp b/libcxx/test/numerics/rand/rand.predef/minstd_rand.pass.cpp
deleted file mode 100644
index 891e5cce6d8..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/minstd_rand.pass.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 linear_congruential_engine<uint_fast32_t, 48271, 0, 2147483647>
-// minstd_rand;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::minstd_rand e;
- e.discard(9999);
- assert(e() == 399268537u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/minstd_rand0.pass.cpp b/libcxx/test/numerics/rand/rand.predef/minstd_rand0.pass.cpp
deleted file mode 100644
index 63848cf9506..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/minstd_rand0.pass.cpp
+++ /dev/null
@@ -1,23 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 linear_congruential_engine<uint_fast32_t, 16807, 0, 2147483647>
-// minstd_rand0;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::minstd_rand0 e;
- e.discard(9999);
- assert(e() == 1043618065u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/mt19937.pass.cpp b/libcxx/test/numerics/rand/rand.predef/mt19937.pass.cpp
deleted file mode 100644
index e3a79364a1f..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/mt19937.pass.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 mersenne_twister_engine<uint_fast32_t, 32, 624, 397, 31,
-// 0x9908b0df,
-// 11, 0xffffffff,
-// 7, 0x9d2c5680,
-// 15, 0xefc60000,
-// 18, 1812433253> mt19937;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::mt19937 e;
- e.discard(9999);
- assert(e() == 4123659995u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/mt19937_64.pass.cpp b/libcxx/test/numerics/rand/rand.predef/mt19937_64.pass.cpp
deleted file mode 100644
index 67896d2260f..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/mt19937_64.pass.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 mersenne_twister_engine<uint_fast64_t, 64, 312, 156, 31,
-// 0xb5026f5aa96619e9,
-// 29, 0x5555555555555555,
-// 17, 0x71d67fffeda60000,
-// 37, 0xfff7eee000000000,
-// 43, 6364136223846793005> mt19937_64;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::mt19937_64 e;
- e.discard(9999);
- assert(e() == 9981545732273789042ull);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/ranlux24.pass.cpp b/libcxx/test/numerics/rand/rand.predef/ranlux24.pass.cpp
deleted file mode 100644
index 529586af9f4..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/ranlux24.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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<ranlux24_base, 223, 23> ranlux24;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::ranlux24 e;
- e.discard(9999);
- assert(e() == 9901578u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/ranlux24_base.pass.cpp b/libcxx/test/numerics/rand/rand.predef/ranlux24_base.pass.cpp
deleted file mode 100644
index f7311469dcb..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/ranlux24_base.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 subtract_with_carry_engine<uint_fast32_t, 24, 10, 24> ranlux24_base;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::ranlux24_base e;
- e.discard(9999);
- assert(e() == 7937952u);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/ranlux48.pass.cpp b/libcxx/test/numerics/rand/rand.predef/ranlux48.pass.cpp
deleted file mode 100644
index f15dfd5493e..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/ranlux48.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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);
-}
diff --git a/libcxx/test/numerics/rand/rand.predef/ranlux48_base.pass.cpp b/libcxx/test/numerics/rand/rand.predef/ranlux48_base.pass.cpp
deleted file mode 100644
index 4c3df3e1dce..00000000000
--- a/libcxx/test/numerics/rand/rand.predef/ranlux48_base.pass.cpp
+++ /dev/null
@@ -1,22 +0,0 @@
-//===----------------------------------------------------------------------===//
-//
-// 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 subtract_with_carry_engine<uint_fast64_t, 48, 5, 12> ranlux48_base;
-
-#include <random>
-#include <cassert>
-
-int main()
-{
- std::ranlux48_base e;
- e.discard(9999);
- assert(e() == 61839128582725ull);
-}
OpenPOWER on IntegriCloud