1*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 2*0a6a1f1dSLionel Sambuc // 3*0a6a1f1dSLionel Sambuc // The LLVM Compiler Infrastructure 4*0a6a1f1dSLionel Sambuc // 5*0a6a1f1dSLionel Sambuc // This file is dual licensed under the MIT and the University of Illinois Open 6*0a6a1f1dSLionel Sambuc // Source Licenses. See LICENSE.TXT for details. 7*0a6a1f1dSLionel Sambuc // 8*0a6a1f1dSLionel Sambuc //===----------------------------------------------------------------------===// 9*0a6a1f1dSLionel Sambuc 10*0a6a1f1dSLionel Sambuc // <random> 11*0a6a1f1dSLionel Sambuc 12*0a6a1f1dSLionel Sambuc // template<class _IntType = int> 13*0a6a1f1dSLionel Sambuc // class uniform_int_distribution 14*0a6a1f1dSLionel Sambuc 15*0a6a1f1dSLionel Sambuc // uniform_int_distribution& operator=(const uniform_int_distribution&); 16*0a6a1f1dSLionel Sambuc 17*0a6a1f1dSLionel Sambuc #include <random> 18*0a6a1f1dSLionel Sambuc #include <cassert> 19*0a6a1f1dSLionel Sambuc 20*0a6a1f1dSLionel Sambuc void test1()21*0a6a1f1dSLionel Sambuctest1() 22*0a6a1f1dSLionel Sambuc { 23*0a6a1f1dSLionel Sambuc typedef std::uniform_int_distribution<long> D; 24*0a6a1f1dSLionel Sambuc D d1(2, 5); 25*0a6a1f1dSLionel Sambuc D d2; 26*0a6a1f1dSLionel Sambuc assert(d1 != d2); 27*0a6a1f1dSLionel Sambuc d2 = d1; 28*0a6a1f1dSLionel Sambuc assert(d1 == d2); 29*0a6a1f1dSLionel Sambuc } 30*0a6a1f1dSLionel Sambuc main()31*0a6a1f1dSLionel Sambucint main() 32*0a6a1f1dSLionel Sambuc { 33*0a6a1f1dSLionel Sambuc test1(); 34*0a6a1f1dSLionel Sambuc } 35