err.D_DECL_ARRSUB.bad.d revision 178476
1207753Smm/*
2207753Smm * CDDL HEADER START
3207753Smm *
4207753Smm * The contents of this file are subject to the terms of the
5207753Smm * Common Development and Distribution License (the "License").
6207753Smm * You may not use this file except in compliance with the License.
7207753Smm *
8207753Smm * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9207753Smm * or http://www.opensolaris.org/os/licensing.
10207753Smm * See the License for the specific language governing permissions
11207753Smm * and limitations under the License.
12207753Smm *
13207753Smm * When distributing Covered Code, include this CDDL HEADER in each
14207753Smm * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15207753Smm * If applicable, add the following below this CDDL HEADER, with the
16207753Smm * fields enclosed by brackets "[]" replaced with your own identifying
17207753Smm * information: Portions Copyright [yyyy] [name of copyright owner]
18207753Smm *
19207753Smm * CDDL HEADER END
20207753Smm */
21207753Smm
22207753Smm/*
23207753Smm * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26
27#pragma	ident	"%Z%%M%	%I%	%E% SMI"
28
29/*
30 * ASSERTION:
31 * 	Arrays declarations must have a positive constant as a
32 * 	subscription.
33 *
34 * SECTION: Pointers and Arrays/Array Declarations and Storage
35 */
36
37int a[-7];
38
39BEGIN
40{
41	exit(0);
42}
43