Add a regression test for r322773.

MFC after:	1 week
This commit is contained in:
Mark Johnston 2017-08-21 21:58:42 +00:00
parent ce4da6fccc
commit a3a7b74e18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=322774
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,35 @@
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org>
*/
/*
* A regression test for FreeBSD r322773. 100^9 fits in 64 bits, but
* llquantize() will create buckets up to 100^{10}, which does not fit.
*/
BEGIN
{
@ = llquantize(0, 100, 0, 9, 100);
exit(0);
}

View File

@ -22,6 +22,7 @@ ${PACKAGE}FILES= \
err.D_LLQUANT_LOWVAL.d \
err.D_LLQUANT_MAGRANGE.d \
err.D_LLQUANT_MAGTOOBIG.d \
err.D_LLQUANT_MAGTOOBIG.offbyone.d \
err.D_LLQUANT_NSTEPMATCH.d \
err.D_LLQUANT_NSTEPTYPE.d \
err.D_LLQUANT_NSTEPVAL.d \