blob: 5a54926e8cef5f07eed130214941e9fff9c8e41c [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// 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 exponential_distribution
// exponential_distribution& operator=(const exponential_distribution&);
#include <random>
#include <cassert>
void
test1()
{
typedef std::exponential_distribution<> D;
D d1(0.75);
D d2;
assert(d1 != d2);
d2 = d1;
assert(d1 == d2);
}
int main()
{
test1();
}