Differential D134584 Diff 465723 libcxx/test/std/numerics/rand/rand.dist/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp
Changeset View
Changeset View
Standalone View
Standalone View
libcxx/test/std/numerics/rand/rand.dist/rand.dist.uni/rand.dist.uni.int/eval.pass.cpp
Show All 9 Lines | |||||
// <random> | // <random> | ||||
// template<class _IntType = int> | // template<class _IntType = int> | ||||
// class uniform_int_distribution | // class uniform_int_distribution | ||||
// template<class _URNG> result_type operator()(_URNG& g); | // template<class _URNG> result_type operator()(_URNG& g); | ||||
#include <random> | |||||
#include <cassert> | #include <cassert> | ||||
#include <climits> | #include <climits> | ||||
#include <cmath> | |||||
#include <cstddef> | #include <cstddef> | ||||
#include <limits> | #include <limits> | ||||
#include <numeric> | #include <numeric> | ||||
#include <random> | |||||
#include <vector> | #include <vector> | ||||
#include "test_macros.h" | #include "test_macros.h" | ||||
// The __int128 conversions to/from floating point crash on MinGW on x86_64. | // The __int128 conversions to/from floating point crash on MinGW on x86_64. | ||||
// This is fixed in Clang 14 by https://reviews.llvm.org/D110413. | // This is fixed in Clang 14 by https://reviews.llvm.org/D110413. | ||||
#if defined(__x86_64__) && defined(__MINGW32__) && defined(__clang_major__) && __clang_major__ < 14 | #if defined(__x86_64__) && defined(__MINGW32__) && defined(__clang_major__) && __clang_major__ < 14 | ||||
#define TEST_BUGGY_I128_FP | #define TEST_BUGGY_I128_FP | ||||
▲ Show 20 Lines • Show All 110 Lines • Show Last 20 Lines |