tst.mulor.d revision 285830
178527Sassar/* 278527Sassar * CDDL HEADER START 378527Sassar * 478527Sassar * The contents of this file are subject to the terms of the 578527Sassar * Common Development and Distribution License (the "License"). 678527Sassar * You may not use this file except in compliance with the License. 778527Sassar * 878527Sassar * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 978527Sassar * or http://www.opensolaris.org/os/licensing. 1078527Sassar * See the License for the specific language governing permissions 1178527Sassar * and limitations under the License. 1278527Sassar * 1378527Sassar * When distributing Covered Code, include this CDDL HEADER in each 1478527Sassar * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1578527Sassar * If applicable, add the following below this CDDL HEADER, with the 1678527Sassar * fields enclosed by brackets "[]" replaced with your own identifying 1778527Sassar * information: Portions Copyright [yyyy] [name of copyright owner] 1878527Sassar * 1978527Sassar * CDDL HEADER END 2078527Sassar */ 2178527Sassar 2278527Sassar/* 2378527Sassar * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2478527Sassar * Use is subject to license terms. 2578527Sassar */ 2678527Sassar 2778527Sassar#pragma ident "%Z%%M% %I% %E% SMI" 2878527Sassar 2978527Sassar/* 3078527Sassar * ASSERTION: 3178527Sassar * 3278527Sassar * Simple multiple ifdefined logical-or(||) test. 3378527Sassar * 3472445Sassar * SECTION: Program Structure/Use of the C Preprocessor 3572445Sassar * 3672445Sassar */ 3772445Sassar 3872445Sassar#if !defined (FLAG) || !defined(STATUS) || !defined(STATE) 3972445Sassar#define VALUE 0 4072445Sassar#else 4172445Sassar#define VALUE 1 4272445Sassar#endif 4372445Sassar 4472445Sassar#pragma D option quiet 4572445Sassar 4672445Sassartick-10ms 4772445Sassar{ 4872445Sassar printf("The value is %d\n", VALUE); 4972445Sassar exit(0); 5072445Sassar} 5172445Sassar