tst.logicalor.d revision 178477
1210036Simp/* 2210036Simp * CDDL HEADER START 3210036Simp * 4210036Simp * The contents of this file are subject to the terms of the 5210036Simp * Common Development and Distribution License (the "License"). 6210036Simp * You may not use this file except in compliance with the License. 7210036Simp * 8210036Simp * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9210036Simp * or http://www.opensolaris.org/os/licensing. 10210036Simp * See the License for the specific language governing permissions 11210036Simp * and limitations under the License. 12210036Simp * 13210036Simp * When distributing Covered Code, include this CDDL HEADER in each 14210036Simp * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15210036Simp * If applicable, add the following below this CDDL HEADER, with the 16210036Simp * fields enclosed by brackets "[]" replaced with your own identifying 17210036Simp * information: Portions Copyright [yyyy] [name of copyright owner] 18210036Simp * 19210036Simp * CDDL HEADER END 20210036Simp */ 21210036Simp 22210036Simp/* 23210036Simp * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24210036Simp * Use is subject to license terms. 25210036Simp */ 26210036Simp 27210036Simp#pragma ident "%Z%%M% %I% %E% SMI" 28210036Simp 29210036Simp/* 30210036Simp * ASSERTION: 31210036Simp * 32210036Simp * if !defined (logical-or) usage. 33210036Simp * 34210036Simp * SECTION: Program Structure/Use of the C Preprocessor 35210036Simp * 36210036Simp */ 37210036Simp 38210036Simp#if !defined (FLAG) || !defined(STATUS) 39210036Simp#define VALUE 0 40210036Simp#else 41210036Simp#define VALUE 1 42210036Simp#endif 43210036Simp 44210036Simp#pragma D option quiet 45210036Simp 46210036Simptick-10ms 47210036Simp{ 48210036Simp printf("The value is %d\n", VALUE); 49210036Simp exit(0); 50210036Simp} 51210036Simp