badptr.d revision 178476
1246149Ssjg/*
2246149Ssjg * CDDL HEADER START
3246149Ssjg *
4246149Ssjg * The contents of this file are subject to the terms of the
5246149Ssjg * Common Development and Distribution License (the "License").
6246149Ssjg * You may not use this file except in compliance with the License.
7300313Ssjg *
8246149Ssjg * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9246149Ssjg * or http://www.opensolaris.org/os/licensing.
10246149Ssjg * See the License for the specific language governing permissions
11246149Ssjg * and limitations under the License.
12246149Ssjg *
13246149Ssjg * When distributing Covered Code, include this CDDL HEADER in each
14246149Ssjg * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15246149Ssjg * If applicable, add the following below this CDDL HEADER, with the
16246149Ssjg * fields enclosed by brackets "[]" replaced with your own identifying
17246149Ssjg * information: Portions Copyright [yyyy] [name of copyright owner]
18246149Ssjg *
19246149Ssjg * CDDL HEADER END
20246149Ssjg */
21246149Ssjg
22246149Ssjg/*
23246149Ssjg * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24246149Ssjg * Use is subject to license terms.
25246149Ssjg */
26246149Ssjg
27246149Ssjg#pragma ident	"%Z%%M%	%I%	%E% SMI"
28246149Ssjg
29246149Ssjg/*
30246149Ssjg * ASSERTION:
31246149Ssjg *	Verify doc example 5-1
32246149Ssjg *
33246149Ssjg * SECTION:
34246149Ssjg *	DocExamples/badptr
35246149Ssjg */
36246149Ssjg
37246149SsjgBEGIN
38246149Ssjg{
39246149Ssjg	x = (int *)NULL;
40246149Ssjg	y = *x;
41246149Ssjg	trace(y);
42246149Ssjg}
43246149Ssjg