tst.arrays.d revision 178477
1270866Simp/* 2270866Simp * CDDL HEADER START 3270866Simp * 4270866Simp * The contents of this file are subject to the terms of the 5270866Simp * Common Development and Distribution License (the "License"). 6270866Simp * You may not use this file except in compliance with the License. 7270866Simp * 8270866Simp * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9270866Simp * or http://www.opensolaris.org/os/licensing. 10270866Simp * See the License for the specific language governing permissions 11270866Simp * and limitations under the License. 12270866Simp * 13270866Simp * When distributing Covered Code, include this CDDL HEADER in each 14270866Simp * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15270866Simp * If applicable, add the following below this CDDL HEADER, with the 16295436Sandrew * fields enclosed by brackets "[]" replaced with your own identifying 17295436Sandrew * information: Portions Copyright [yyyy] [name of copyright owner] 18295436Sandrew * 19270866Simp * CDDL HEADER END 20270866Simp */ 21270866Simp 22270866Simp/* 23270866Simp * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24270866Simp * Use is subject to license terms. 25279385Simp */ 26270866Simp 27270866Simp#pragma ident "%Z%%M% %I% %E% SMI" 28270866Simp 29270866Simp 30270866Simp/* 31270866Simp * ASSERTION: 32270866Simp * Test various kinds of array declarations. 33270866Simp * 34270866Simp * SECTION: Program Structure/Probe Clauses and Declarations 35270866Simp * 36270866Simp */ 37270866Simp 38270866Simpextern int a1[]; 39270866Simp 40270866Simpextern int a2[1]; 41270866Simp 42270866Simpextern int a3[123][456]; 43270866Simp 44270866Simpextern int a4[123][456][789]; 45270866Simp 46270866Simpextern int a5[5], a6[6][6], a7[7][7][7]; 47270866Simp 48270866SimpBEGIN 49270866Simp{ 50270866Simp exit(0); 51270866Simp} 52270866Simp