Differential D134584 Diff 465723 libcxx/test/std/numerics/rand/rand.dist/rand.dist.bern/rand.dist.bern.bin/eval.PR44847.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/numerics/rand/rand.dist/rand.dist.bern/rand.dist.bern.bin/eval.PR44847.pass.cpp
Show All 12 Lines | |||||
// template<class _URNG> result_type operator()(_URNG& g); | // template<class _URNG> result_type operator()(_URNG& g); | ||||
// Test the fix for https://llvm.org/PR44847. | // Test the fix for https://llvm.org/PR44847. | ||||
// Serializing/deserializing the state of the RNG requires iostreams | // Serializing/deserializing the state of the RNG requires iostreams | ||||
// UNSUPPORTED: no-localization | // UNSUPPORTED: no-localization | ||||
#include <random> | |||||
#include <numeric> | |||||
#include <vector> | |||||
#include <cassert> | #include <cassert> | ||||
#include <cmath> | |||||
#include <numeric> | |||||
#include <random> | |||||
#include <sstream> | #include <sstream> | ||||
#include <vector> | |||||
#include "test_macros.h" | #include "test_macros.h" | ||||
int main(int, char**) { | int main(int, char**) { | ||||
typedef std::binomial_distribution<> D; | typedef std::binomial_distribution<> D; | ||||
typedef std::mt19937 G; | typedef std::mt19937 G; | ||||
G g; | G g; | ||||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |