brintos

brintos / llvm-project-archived public Read only

0
0
Text · 758 B · a97f9b5 Raw
33 lines · cpp
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-exception6//7//===----------------------------------------------------------------------===//8 9// <random>10 11// template<class IntType = int>12// class negative_binomial_distribution13 14// result_type max() const;15 16#include <random>17 18#include <cassert>19#include <limits>20 21#include "test_macros.h"22 23int main(int, char**)24{25    {26        typedef std::negative_binomial_distribution<> D;27        D d(4, .25);28        assert(d.max() == std::numeric_limits<int>::max());29    }30 31  return 0;32}33