[MIR][NFC] Use `std::move` to avoid copying (#125930)
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.dist / rand.dist.pois / rand.dist.pois.extreme / min.pass.cpp
blob43a3c7b2011c074327d8eec753fd81641eeaed4a
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 extreme_value_distribution
14 // result_type min() const;
16 #include <random>
18 #include <cassert>
19 #include <cmath>
21 #include "test_macros.h"
23 int main(int, char**)
26 typedef std::extreme_value_distribution<> D;
27 D d(.5, .5);
28 assert(d.min() == -INFINITY);
31 return 0;