[MIR][NFC] Use `std::move` to avoid copying (#125930)
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.dist / rand.dist.uni / rand.dist.uni.real / eq.pass.cpp
blob8f250ad09fa7616b7a2e113d3b368f3af4f1bc2d
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 RealType = double>
12 // class uniform_real_distribution
14 // bool operator=(const uniform_real_distribution& x,
15 // const uniform_real_distribution& y);
16 // bool operator!(const uniform_real_distribution& x,
17 // const uniform_real_distribution& y);
19 #include <random>
20 #include <cassert>
22 #include "test_macros.h"
24 int main(int, char**)
27 typedef std::uniform_real_distribution<> D;
28 D d1(3, 8);
29 D d2(3, 8);
30 assert(d1 == d2);
33 typedef std::uniform_real_distribution<> D;
34 D d1(3, 8);
35 D d2(3, 8.1);
36 assert(d1 != d2);
39 return 0;