err.D_IDENT_UNDEF.badexpr.d revision 178476
1174195Srwatson/* 2174195Srwatson * CDDL HEADER START 3174195Srwatson * 4174195Srwatson * The contents of this file are subject to the terms of the 5174195Srwatson * Common Development and Distribution License (the "License"). 6174195Srwatson * You may not use this file except in compliance with the License. 7174195Srwatson * 8174195Srwatson * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9174195Srwatson * or http://www.opensolaris.org/os/licensing. 10174195Srwatson * See the License for the specific language governing permissions 11174195Srwatson * and limitations under the License. 12174195Srwatson * 13174195Srwatson * When distributing Covered Code, include this CDDL HEADER in each 14174195Srwatson * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15174195Srwatson * If applicable, add the following below this CDDL HEADER, with the 16174195Srwatson * fields enclosed by brackets "[]" replaced with your own identifying 17174195Srwatson * information: Portions Copyright [yyyy] [name of copyright owner] 18174195Srwatson * 19174195Srwatson * CDDL HEADER END 20174195Srwatson */ 21174195Srwatson 22174195Srwatson/* 23174195Srwatson * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24174195Srwatson * Use is subject to license terms. 25174195Srwatson */ 26174195Srwatson 27174195Srwatson#pragma ident "%Z%%M% %I% %E% SMI" 28174195Srwatson 29174195Srwatson/* 30174195Srwatson * ASSERTION: 31174195Srwatson * Test using an aggregation in an expression context. 32174195Srwatson * This should result in a compile-time error. 33174195Srwatson * 34174195Srwatson * SECTION: Aggregations/Aggregations 35174195Srwatson * 36174195Srwatson */ 37174195Srwatson 38174195SrwatsonBEGIN 39174195Srwatson{ 40174195Srwatson trace(@a + 3); 41174195Srwatson} 42174195Srwatson