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 //===----------------------------------------------------------------------===// 8 9 // <random> 10 11 // class bernoulli_distribution 12 13 // bool operator=(const bernoulli_distribution& x, 14 // const bernoulli_distribution& y); 15 // bool operator!(const bernoulli_distribution& x, 16 // const bernoulli_distribution& y); 17 18 #include <random> 19 #include <cassert> 20 21 #include "test_macros.h" 22 main(int,char **)23int main(int, char**) 24 { 25 { 26 typedef std::bernoulli_distribution D; 27 D d1(.25); 28 D d2(.25); 29 assert(d1 == d2); 30 } 31 { 32 typedef std::bernoulli_distribution D; 33 D d1(.28); 34 D d2(.25); 35 assert(d1 != d2); 36 } 37 38 return 0; 39 } 40