tst.basic1.d revision 178477
1129198Scognet/*
2129198Scognet * CDDL HEADER START
3139735Simp *
4129198Scognet * The contents of this file are subject to the terms of the
5129198Scognet * Common Development and Distribution License (the "License").
6129198Scognet * You may not use this file except in compliance with the License.
7129198Scognet *
8129198Scognet * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9129198Scognet * or http://www.opensolaris.org/os/licensing.
10129198Scognet * See the License for the specific language governing permissions
11129198Scognet * and limitations under the License.
12129198Scognet *
13129198Scognet * When distributing Covered Code, include this CDDL HEADER in each
14129198Scognet * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15129198Scognet * If applicable, add the following below this CDDL HEADER, with the
16129198Scognet * fields enclosed by brackets "[]" replaced with your own identifying
17129198Scognet * information: Portions Copyright [yyyy] [name of copyright owner]
18129198Scognet *
19129198Scognet * CDDL HEADER END
20129198Scognet */
21129198Scognet
22129198Scognet/*
23129198Scognet * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24129198Scognet * Use is subject to license terms.
25129198Scognet */
26129198Scognet
27129198Scognet#pragma	ident	"%Z%%M%	%I%	%E% SMI"
28129198Scognet
29129198Scognet/*
30129198Scognet * ASSERTION:
31129198Scognet * 	Simple array test
32129198Scognet *
33129198Scognet * SECTION: Pointers and Arrays/Array Declarations and Storage
34129198Scognet *
35129198Scognet */
36129198Scognet
37129198Scognet
38129198Scognet#pragma D option quiet
39129198Scognet
40129198ScognetBEGIN
41129198Scognet{
42129198Scognet	a[1] = 0;
43129198Scognet}
44129198Scognet
45129198Scognettick-1
46208052Scognet/a[1] == 0/
47129198Scognet{
48129198Scognet	exit(0);
49129198Scognet}
50129198Scognet
51129198Scognettick-1
52129198Scognet/a[1] != 0/
53129198Scognet{
54129198Scognet	printf("Expected 0, got %d\n", a[1]);
55	exit(1);
56}
57