[TableGen] Split DAGISelMatcherOpt FactorNodes into 2 functions. NFC (#125330)
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.dist / rand.dist.bern / rand.dist.bern.negbin / eq.pass.cpp
blob7424bf20149105fb5b8dae1e5b11d09f8c3d9cac
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 IntType = int>
12 // class negative_binomial_distribution
14 // bool operator=(const negative_binomial_distribution& x,
15 // const negative_binomial_distribution& y);
16 // bool operator!(const negative_binomial_distribution& x,
17 // const negative_binomial_distribution& y);
19 #include <random>
20 #include <cassert>
22 #include "test_macros.h"
24 int main(int, char**)
27 typedef std::negative_binomial_distribution<> D;
28 D d1(3, .25);
29 D d2(3, .25);
30 assert(d1 == d2);
33 typedef std::negative_binomial_distribution<> D;
34 D d1(3, .28);
35 D d2(3, .25);
36 assert(d1 != d2);
39 typedef std::negative_binomial_distribution<> D;
40 D d1(3, .25);
41 D d2(4, .25);
42 assert(d1 != d2);
45 return 0;