xref: /illumos-gate/usr/src/cmd/dtrace/test/tst/common/strtoll/err.BaseTooLarge.d (revision f497f9fe231e0e400f339c84a7d80c4aae2ac4d5)
1*f497f9feSJoshua M. Clulow /*
2*f497f9feSJoshua M. Clulow  * This file and its contents are supplied under the terms of the
3*f497f9feSJoshua M. Clulow  * Common Development and Distribution License ("CDDL"), version 1.0.
4*f497f9feSJoshua M. Clulow  * You may only use this file in accordance with the terms of version
5*f497f9feSJoshua M. Clulow  * 1.0 of the CDDL.
6*f497f9feSJoshua M. Clulow  *
7*f497f9feSJoshua M. Clulow  * A full copy of the text of the CDDL should have accompanied this
8*f497f9feSJoshua M. Clulow  * source.  A copy of the CDDL is also available via the Internet at
9*f497f9feSJoshua M. Clulow  * http://www.illumos.org/license/CDDL.
10*f497f9feSJoshua M. Clulow  */
11*f497f9feSJoshua M. Clulow 
12*f497f9feSJoshua M. Clulow /*
13*f497f9feSJoshua M. Clulow  * Copyright (c) 2012, Joyent, Inc. All rights reserved.
14*f497f9feSJoshua M. Clulow  */
15*f497f9feSJoshua M. Clulow 
16*f497f9feSJoshua M. Clulow /*
17*f497f9feSJoshua M. Clulow  * ASSERTION:
18*f497f9feSJoshua M. Clulow  *   The largest base we will accept is Base 36 -- i.e. using all of 0-9 and
19*f497f9feSJoshua M. Clulow  *   A-Z as numerals.
20*f497f9feSJoshua M. Clulow  *
21*f497f9feSJoshua M. Clulow  * SECTION: Actions and Subroutines/strtoll()
22*f497f9feSJoshua M. Clulow  */
23*f497f9feSJoshua M. Clulow 
24*f497f9feSJoshua M. Clulow #pragma D option quiet
25*f497f9feSJoshua M. Clulow 
26*f497f9feSJoshua M. Clulow BEGIN
27*f497f9feSJoshua M. Clulow {
28*f497f9feSJoshua M. Clulow 	printf("%d\n", strtoll("0", 37));
29*f497f9feSJoshua M. Clulow 	exit(0);
30*f497f9feSJoshua M. Clulow }
31*f497f9feSJoshua M. Clulow 
32*f497f9feSJoshua M. Clulow ERROR
33*f497f9feSJoshua M. Clulow {
34*f497f9feSJoshua M. Clulow 	exit(1);
35*f497f9feSJoshua M. Clulow }
36