183098Smp/*
259243Sobrien * CDDL HEADER START
359243Sobrien *
459243Sobrien * The contents of this file are subject to the terms of the
559243Sobrien * Common Development and Distribution License (the "License").
659243Sobrien * You may not use this file except in compliance with the License.
759243Sobrien *
859243Sobrien * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
959243Sobrien * or http://www.opensolaris.org/os/licensing.
1059243Sobrien * See the License for the specific language governing permissions
1159243Sobrien * and limitations under the License.
1259243Sobrien *
1359243Sobrien * When distributing Covered Code, include this CDDL HEADER in each
1459243Sobrien * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1559243Sobrien * If applicable, add the following below this CDDL HEADER, with the
1659243Sobrien * fields enclosed by brackets "[]" replaced with your own identifying
1759243Sobrien * information: Portions Copyright [yyyy] [name of copyright owner]
1859243Sobrien *
1959243Sobrien * CDDL HEADER END
2059243Sobrien */
2159243Sobrien
2259243Sobrien/*
2359243Sobrien * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2459243Sobrien * Use is subject to license terms.
2559243Sobrien */
2659243Sobrien
2759243Sobrien#pragma	ident	"%Z%%M%	%I%	%E% SMI"
2859243Sobrien
2959243Sobrien/*
3059243Sobrien * ASSERTION:
3159243Sobrien * 	Simple array test
3259243Sobrien *
3359243Sobrien * SECTION: Pointers and Arrays/Array Declarations and Storage
3459243Sobrien *
3559243Sobrien */
3659243Sobrien
3759243Sobrien
3859243Sobrien#pragma D option quiet
3959243Sobrien
4059243SobrienBEGIN
4159243Sobrien{
4259243Sobrien	a[1] = 0;
4359243Sobrien	++a[1];
4459243Sobrien}
4559243Sobrien
4659243Sobrientick-1
4759243Sobrien/a[1] == 1/
4859243Sobrien{
4959243Sobrien	exit(0);
5059243Sobrien}
5159243Sobrien
5259243Sobrientick-1
5359243Sobrien/a[1] != 1/
5459243Sobrien{
5559243Sobrien	printf("Expected 1, got %d\n", a[1]);
5659243Sobrien}
5759243Sobrien