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//===----------------------------------------------------------------------===//
8
9// <random>
10
11// template<class RealType = double>
12// class gamma_distribution
13
14// bool operator=(const gamma_distribution& x,
15// const gamma_distribution& y);
16// bool operator!(const gamma_distribution& x,
17// const gamma_distribution& y);
18
19#include <random>
20#include <cassert>
21
22#include "test_macros.h"
23
24int main(int, char**)
25{
26 {
27 typedef std::gamma_distribution<> D;
28 D d1(2.5, 4);
29 D d2(2.5, 4);
30 assert(d1 == d2);
31 }
32 {
33 typedef std::gamma_distribution<> D;
34 D d1(2.5, 4);
35 D d2(2.5, 4.5);
36 assert(d1 != d2);
37 }
38
39 return 0;
40}
41

source code of libcxx/test/std/numerics/rand/rand.dist/rand.dist.pois/rand.dist.pois.gamma/eq.pass.cpp