1 //===----------------------------------------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
12 // template <class UIntType, UIntType a, UIntType c, UIntType m>
13 // class linear_congruential_engine;
15 // linear_congruential_engine& operator=(const linear_congruential_engine&);
20 template <class T, T a, T c, T m>
24 typedef std::linear_congruential_engine<T, a, c, m> E;
40 const T M(static_cast<T>(-1));
42 test1<T, 0, M-2, M>();
43 test1<T, 0, M-1, M>();
44 test1<T, M-2, 0, M>();
45 test1<T, M-2, M-2, M>();
46 test1<T, M-2, M-1, M>();
47 test1<T, M-1, 0, M>();
48 test1<T, M-1, M-2, M>();
49 test1<T, M-1, M-1, M>();
54 test<unsigned short>();
56 test<unsigned long>();
57 test<unsigned long long>();