err.D_CAST_INVAL.badcast.d revision 178476
175584Sru/*
275584Sru * CDDL HEADER START
375584Sru *
4104862Sru * The contents of this file are subject to the terms of the
575584Sru * Common Development and Distribution License (the "License").
675584Sru * You may not use this file except in compliance with the License.
775584Sru *
875584Sru * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
975584Sru * or http://www.opensolaris.org/os/licensing.
1075584Sru * See the License for the specific language governing permissions
1175584Sru * and limitations under the License.
1275584Sru *
1375584Sru * When distributing Covered Code, include this CDDL HEADER in each
1475584Sru * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15104862Sru * If applicable, add the following below this CDDL HEADER, with the
1675584Sru * fields enclosed by brackets "[]" replaced with your own identifying
1775584Sru * information: Portions Copyright [yyyy] [name of copyright owner]
1875584Sru *
1975584Sru * CDDL HEADER END
2075584Sru */
2175584Sru
22104862Sru/*
2375584Sru * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2475584Sru * Use is subject to license terms.
2575584Sru */
2675584Sru
2775584Sru
2875584Sru#pragma	ident	"%Z%%M%	%I%	%E% SMI"
2975584Sru
3075584Sru
3175584Sru/*
3275584Sru * ASSERTION:
3375584Sru *	Test an illegal cast - make sure dtrace catches it.
3475584Sru *
3575584Sru * SECTION: Aggregations/Clearing aggregations
3675584Sru *
3775584Sru *
3875584Sru */
3975584Sru
4075584Sru
4175584SruBEGIN
4275584Sru{
4375584Sru	(char)trace(`kmem_flags);
4475584Sru	exit();
4575584Sru}
4675584Sru