From 571c91a8c118f50c4d5594f62d2073179961979a Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Tue, 6 Jun 2006 22:42:27 +0000 Subject: 5_numerical_facilies: Move to... 2006-06-06 Benjamin Kosnik * testsuite/tr1/5_numerical_facilies: Move to... * testsuite/tr1/5_numerical_facilities: ...this. From-SVN: r114451 --- .../random/linear_congruential/operators/equal.cc | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/operators/equal.cc (limited to 'libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/operators/equal.cc') diff --git a/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/operators/equal.cc b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/operators/equal.cc new file mode 100644 index 00000000000..ca469ad5189 --- /dev/null +++ b/libstdc++-v3/testsuite/tr1/5_numerical_facilities/random/linear_congruential/operators/equal.cc @@ -0,0 +1,44 @@ +// 2006-06-04 Stephen M. Webb +// +// Copyright (C) 2006 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 +// terms of the GNU General Public License as published by the +// Free Software Foundation; either version 2, or (at your option) +// any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License along +// with this library; see the file COPYING. If not, write to the Free +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, +// USA. + +// 5.1.4.1 Class template linear_congruential +// 5.1 [3] Table 16 + +#include +#include + +void +test01() +{ + bool test __attribute__((unused)) = true; + + std::tr1::minstd_rand0 a; + std::tr1::minstd_rand0 b; + std::tr1::minstd_rand0 c(120); + + VERIFY( a == b ); + VERIFY( !(a == c) ); +} + +int main() +{ + test01(); + return 0; +} -- cgit v1.2.1