Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.predef / minstd_rand.pass.cpp
blob1115eb885dbf59abe3e171694cc2b50b85ac8a2c
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 linear_congruential_engine<uint_fast32_t, 48271, 0, 2147483647>
12 // minstd_rand;
14 #include <random>
15 #include <cassert>
17 #include "test_macros.h"
19 int main(int, char**)
21 std::minstd_rand e;
22 e.discard(9999);
23 assert(e() == 399268537u);
25 return 0;