Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.eng / rand.eng.lcong / ctor_sseq.pass.cpp
blob562f86b41728b4a6c25da96812ce84b0dfc4f190
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 // template <class UIntType, UIntType a, UIntType c, UIntType m>
12 // class linear_congruential_engine;
14 // template<class Sseq> explicit linear_congruential_engine(Sseq& q);
16 #include <random>
17 #include <cassert>
19 #include "test_macros.h"
21 int main(int, char**)
24 unsigned a[] = {3, 5, 7};
25 std::seed_seq sseq(a, a+3);
26 std::linear_congruential_engine<unsigned, 5, 7, 11> e1(sseq);
27 std::linear_congruential_engine<unsigned, 5, 7, 11> e2(4);
28 assert(e1 == e2);
31 return 0;