blob: c591f58c9f361674273ff88aa966be7282d8b65d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
// <random>
// template<class RealType = double>
// class gamma_distribution
// result_type max() const;
#include <random>
#include <cassert>
int main()
{
{
typedef std::gamma_distribution<> D;
D d(5, .25);
D::result_type m = d.max();
assert(m == INFINITY);
}
}
|