4477 DTrace should speak JSON
[illumos-gate.git] / usr / src / cmd / dtrace / test / tst / common / strtoll / err.BaseTooSmall.d
blobde56b50e9edaaa73b00de1523dbd839d8ebe05ef
1 /*
2 * This file and its contents are supplied under the terms of the
3 * Common Development and Distribution License ("CDDL"), version 1.0.
4 * You may only use this file in accordance with the terms of version
5 * 1.0 of the CDDL.
7 * A full copy of the text of the CDDL should have accompanied this
8 * source. A copy of the CDDL is also available via the Internet at
9 * http://www.illumos.org/license/CDDL.
13 * Copyright (c) 2012, Joyent, Inc. All rights reserved.
17 * ASSERTION:
18 * The smallest base we will accept is Base 2.
20 * SECTION: Actions and Subroutines/strtoll()
23 #pragma D option quiet
25 BEGIN
27 printf("%d\n", strtoll("0", 1));
28 exit(0);
31 ERROR
33 exit(1);