//
// 2008-11-24 Edward M. Smith-Rowland <3dw4rd@verizon.net>
//
-// Copyright (C) 2008-2016 Free Software Foundation, Inc.
+// Copyright (C) 2008-2020 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
void
test01()
{
- bool test __attribute__((unused)) = true;
-
std::uniform_int_distribution<int> u(1, 20);
VERIFY( u.a() == 1 );
VERIFY( u.b() == 20 );
VERIFY( u.max() == 20 );
}
+void
+test02()
+{
+ using param_type = std::uniform_int_distribution<int>::param_type;
+ const param_type p(1, 20);
+ std::uniform_int_distribution<int> u(p);
+ VERIFY( u.param() == p );
+ VERIFY( u.param() != param_type{} );
+ VERIFY( u.min() == 1 );
+ VERIFY( u.max() == 20 );
+}
+
int main()
{
test01();
- return 0;
+ test02();
}