err.NegativeNspec.d revision 9512fe850e98fdd448c638ca63fdd92a8a510255
3668N/A/*
3668N/A * CDDL HEADER START
3668N/A *
3668N/A * The contents of this file are subject to the terms of the
3668N/A * Common Development and Distribution License (the "License").
3668N/A * You may not use this file except in compliance with the License.
3668N/A *
3668N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3668N/A * or http://www.opensolaris.org/os/licensing.
3668N/A * See the License for the specific language governing permissions
3668N/A * and limitations under the License.
3668N/A *
3668N/A * When distributing Covered Code, include this CDDL HEADER in each
3668N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3668N/A * If applicable, add the following below this CDDL HEADER, with the
3668N/A * fields enclosed by brackets "[]" replaced with your own identifying
3668N/A * information: Portions Copyright [yyyy] [name of copyright owner]
3668N/A *
3668N/A * CDDL HEADER END
3668N/A */
3996N/A
3668N/A/*
3668N/A * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
3668N/A * Use is subject to license terms.
3668N/A */
3668N/A
3668N/A#pragma ident "%Z%%M% %I% %E% SMI"
3668N/A
3668N/A/*
3668N/A * ASSERTION:
3668N/A * Using a negative value for nspec throws a compiler error.
3668N/A *
3668N/A * SECTION: Speculative Tracing/Options and Tuning;
3668N/A * Options and Tunables/nspec
3668N/A */
3668N/A
3668N/A#pragma D option quiet
3668N/A#pragma D option nspec=-72
3996N/A
3996N/ABEGIN
3996N/A{
3668N/A self->speculateFlag = 0;
3668N/A self->commitFlag = 0;
3668N/A self->spec = speculation();
3668N/A printf("Speculative buffer ID: %d\n", self->spec);
3668N/A printf("This test shouldnt have compiled\n");
3668N/A exit(0);
3668N/A}
3668N/A