[PowerPC] Collect some CallLowering arguments into a struct. [NFC]
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.predef / default_random_engine.pass.cpp
blobb06cd4656610d313bd36b68986e5cb2951a305e2
1 //===----------------------------------------------------------------------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 // <random>
11 // typedef minstd_rand0 default_random_engine;
13 #include <random>
14 #include <cassert>
16 #include "test_macros.h"
18 int main(int, char**)
20 std::default_random_engine e;
21 e.discard(9999);
22 LIBCPP_ASSERT(e() == 399268537u);
24 return 0;