tst.EnumEquality.d revision 178477
113546Sjulian/* 213546Sjulian * CDDL HEADER START 313546Sjulian * 413546Sjulian * The contents of this file are subject to the terms of the 513546Sjulian * Common Development and Distribution License (the "License"). 613546Sjulian * You may not use this file except in compliance with the License. 713546Sjulian * 813546Sjulian * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 913546Sjulian * or http://www.opensolaris.org/os/licensing. 1013546Sjulian * See the License for the specific language governing permissions 1113546Sjulian * and limitations under the License. 1213546Sjulian * 13165967Simp * When distributing Covered Code, include this CDDL HEADER in each 1413546Sjulian * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1513546Sjulian * If applicable, add the following below this CDDL HEADER, with the 1613546Sjulian * fields enclosed by brackets "[]" replaced with your own identifying 1713546Sjulian * information: Portions Copyright [yyyy] [name of copyright owner] 1813546Sjulian * 1913546Sjulian * CDDL HEADER END 2049439Sdeischen */ 2113546Sjulian 2213546Sjulian/* 2313546Sjulian * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2413546Sjulian * Use is subject to license terms. 2513546Sjulian */ 2613546Sjulian 2713546Sjulian#pragma ident "%Z%%M% %I% %E% SMI" 2813546Sjulian 2950476Speter/* 3013546Sjulian * ASSERTION: 3113546Sjulian * Test the identifiers in different D enumerations at same position for 32103388Smini * equality. 3313546Sjulian * 34174112Sdeischen * SECTION: Type and Constant Definitions/Enumerations 35174112Sdeischen */ 3675369Sdeischen 3775369Sdeischen#pragma D option quiet 3871581Sdeischen 3934224Sjbenum colors { 4071581Sdeischen RED, 4134224Sjb GREEN, 4271581Sdeischen BLUE 4371581Sdeischen}; 44119063Sdavidxu 45117706Sdavidxuenum shades { 46117706Sdavidxu WHITE, 4734224Sjb BLACK, 4871581Sdeischen YELLOW 4934224Sjb}; 5034224Sjb 51113658Sdeischen 5234224Sjbprofile:::tick-1sec 5334224Sjb/(WHITE == RED) && (YELLOW == BLUE) && (GREEN == BLACK)/ 5434224Sjb{ 5534224Sjb exit(0); 5634224Sjb} 5713546Sjulian