Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.predef / ranlux48.pass.cpp
blob2799803f7f29337a3bb0b1ac427ea17c93de627f
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 discard_block_engine<ranlux48_base, 389, 11> ranlux48;
13 #include <random>
14 #include <cassert>
16 #include "test_macros.h"
18 int main(int, char**)
20 std::ranlux48 e;
21 e.discard(9999);
22 assert(e() == 249142670248501ull);
24 return 0;