tst.misc.d revision 178476
140975Sdes/*
237535Sdes * CDDL HEADER START
337535Sdes *
437535Sdes * The contents of this file are subject to the terms of the
537535Sdes * Common Development and Distribution License (the "License").
640975Sdes * You may not use this file except in compliance with the License.
740975Sdes *
840975Sdes * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
940975Sdes * or http://www.opensolaris.org/os/licensing.
1040975Sdes * See the License for the specific language governing permissions
1140975Sdes * and limitations under the License.
1240975Sdes *
1340975Sdes * When distributing Covered Code, include this CDDL HEADER in each
1440975Sdes * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1540975Sdes * If applicable, add the following below this CDDL HEADER, with the
1640975Sdes * fields enclosed by brackets "[]" replaced with your own identifying
1740975Sdes * information: Portions Copyright [yyyy] [name of copyright owner]
1840975Sdes *
1940975Sdes * CDDL HEADER END
2040975Sdes */
2140975Sdes
2240975Sdes/*
2340975Sdes * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2440975Sdes * Use is subject to license terms.
2540975Sdes */
2640975Sdes
2740975Sdes#pragma	ident	"%Z%%M%	%I%	%E% SMI"
2840975Sdes
2940975Sdes/*
3040975Sdes * ASSERTION:
3140975Sdes *  Test the different kinds of integer scalar references.  In particular, we
3240975Sdes *  test accessing a kernel executable scalar, kernel scoped scalar, DTrace
3340975Sdes *  scalar first ref that forces creation (both global and TLS), and DTrace
3440975Sdes *  scalar subsequent reference (both global and TLS).
3540975Sdes *
3640975Sdes * SECTION:  Variables/External Variables
3740975Sdes *
3840975Sdes */
3940975Sdes
4040975SdesBEGIN
4140975Sdes{
4240975Sdes	printf("\nkmem_flags = 0x%x\n", `kmem_flags);
4340975Sdes	printf("ufs`ufs_allow_shared_writes = %d\n",
4440975Sdes	    ufs`ufs_allow_shared_writes);
45	x = 123;
46	printf("x = %u\n", x);
47	self->x = 456;
48	printf("self->x = %u\n", self->x);
49	exit(0);
50}
51