1 //===----------------------------------------------------------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is dual licensed under the MIT and the University of Illinois Open
6 // Source Licenses. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 
10 // <random>
11 
12 // template <class UIntType, UIntType a, UIntType c, UIntType m>
13 // class linear_congruential_engine
14 // {
15 // public:
16 //     // types
17 //     typedef UIntType result_type;
18 
19 #include <random>
20 #include <type_traits>
21 
22 template <class T>
23 void
test()24 test()
25 {
26     static_assert((std::is_same<
27         typename std::linear_congruential_engine<T, 0, 0, 0>::result_type,
28         T>::value), "");
29 }
30 
main()31 int main()
32 {
33     test<unsigned short>();
34     test<unsigned int>();
35     test<unsigned long>();
36     test<unsigned long long>();
37 }
38