[RISCV] Fix mgather -> riscv.masked.strided.load combine not extending indices (...
[llvm-project.git] / libcxx / test / std / numerics / rand / rand.dist / rand.dist.pois / rand.dist.pois.poisson / max.pass.cpp
blob1044b8edb4cea7696aa78f1e542fc4629df3aed5
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 poisson_distribution
14 // result_type max() const;
16 #include <random>
18 #include <cassert>
19 #include <limits>
21 #include "test_macros.h"
23 int main(int, char**)
26 typedef std::poisson_distribution<> D;
27 D d(.25);
28 D::result_type m = d.max();
29 assert(m == std::numeric_limits<int>::max());
32 return 0;