mirror of
https://github.com/llvm-mirror/libcxx.git
synced 2025-10-24 03:32:35 +08:00
Fix portability issues in <random> tests. Patch from STL@microsoft.com
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@276585 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,9 +14,11 @@
|
||||
#include <random>
|
||||
#include <cassert>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
int main()
|
||||
{
|
||||
std::default_random_engine e;
|
||||
e.discard(9999);
|
||||
assert(e() == 399268537u);
|
||||
LIBCPP_ASSERT(e() == 399268537u);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user