err.D_LLQUANT_MAGTOOBIG.offbyone.d revision 322774
1322774Smarkj/*
2322774Smarkj * CDDL HEADER START
3322774Smarkj *
4322774Smarkj * The contents of this file are subject to the terms of the
5322774Smarkj * Common Development and Distribution License (the "License").
6322774Smarkj * You may not use this file except in compliance with the License.
7322774Smarkj *
8322774Smarkj * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9322774Smarkj * or http://www.opensolaris.org/os/licensing.
10322774Smarkj * See the License for the specific language governing permissions
11322774Smarkj * and limitations under the License.
12322774Smarkj *
13322774Smarkj * When distributing Covered Code, include this CDDL HEADER in each
14322774Smarkj * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15322774Smarkj * If applicable, add the following below this CDDL HEADER, with the
16322774Smarkj * fields enclosed by brackets "[]" replaced with your own identifying
17322774Smarkj * information: Portions Copyright [yyyy] [name of copyright owner]
18322774Smarkj *
19322774Smarkj * CDDL HEADER END
20322774Smarkj */
21322774Smarkj
22322774Smarkj/*
23322774Smarkj * Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org>
24322774Smarkj */
25322774Smarkj
26322774Smarkj/*
27322774Smarkj * A regression test for FreeBSD r322773. 100^9 fits in 64 bits, but
28322774Smarkj * llquantize() will create buckets up to 100^{10}, which does not fit.
29322774Smarkj */
30322774Smarkj
31322774SmarkjBEGIN
32322774Smarkj{
33322774Smarkj	@ = llquantize(0, 100, 0, 9, 100);
34322774Smarkj	exit(0);
35322774Smarkj}
36