Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.eng / rand.eng.lcong / params.verify.cpp
blobbc9b5636e415d7db267c865b9d2d2151c6660a9b
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 // requirements on parameters
16 #include <random>
18 int main(int, char**)
20 typedef unsigned long long T;
22 // expected-error-re@*:* {{static assertion failed due to requirement '1ULL == 0 || 1ULL < 1ULL'{{.*}}linear_congruential_engine invalid parameters}}
23 std::linear_congruential_engine<T, 0, 0, 0> e2;
24 // expected-error-re@*:* {{static assertion failed due to requirement '1ULL == 0 || 1ULL < 1ULL'{{.*}}linear_congruential_engine invalid parameters}}
25 std::linear_congruential_engine<T, 0, 1, 1> e3;
26 std::linear_congruential_engine<T, 1, 0, 1> e4;
27 // expected-error-re@*:* {{static assertion failed due to requirement 'is_unsigned<int>::value'{{.*}}_UIntType must be unsigned type}}
28 std::linear_congruential_engine<int, 0, 0, 0> e5;
30 return 0;