1*0Sstevel@tonic-gate\ #ident "%Z%%M% %I% %E% SMI" 2*0Sstevel@tonic-gate\ purpose: 3*0Sstevel@tonic-gate\ copyright: Copyright 2005 Sun Microsystems, Inc. All rights reserved. 4*0Sstevel@tonic-gate\ copyright: Use is subject to license terms. 5*0Sstevel@tonic-gate\ copyright: 6*0Sstevel@tonic-gate\ copyright: CDDL HEADER START 7*0Sstevel@tonic-gate\ copyright: 8*0Sstevel@tonic-gate\ copyright: The contents of this file are subject to the terms of the 9*0Sstevel@tonic-gate\ copyright: Common Development and Distribution License, Version 1.0 only 10*0Sstevel@tonic-gate\ copyright: (the "License"). You may not use this file except in compliance 11*0Sstevel@tonic-gate\ copyright: with the License. 12*0Sstevel@tonic-gate\ copyright: 13*0Sstevel@tonic-gate\ copyright: You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 14*0Sstevel@tonic-gate\ copyright: or http://www.opensolaris.org/os/licensing. 15*0Sstevel@tonic-gate\ copyright: See the License for the specific language governing permissions 16*0Sstevel@tonic-gate\ copyright: and limitations under the License. 17*0Sstevel@tonic-gate\ copyright: 18*0Sstevel@tonic-gate\ copyright: When distributing Covered Code, include this CDDL HEADER in each 19*0Sstevel@tonic-gate\ copyright: file and include the License file at usr/src/OPENSOLARIS.LICENSE. 20*0Sstevel@tonic-gate\ copyright: If applicable, add the following below this CDDL HEADER, with the 21*0Sstevel@tonic-gate\ copyright: fields enclosed by brackets "[]" replaced with your own identifying 22*0Sstevel@tonic-gate\ copyright: information: Portions Copyright [yyyy] [name of copyright owner] 23*0Sstevel@tonic-gate\ copyright: 24*0Sstevel@tonic-gate\ copyright: CDDL HEADER END 25*0Sstevel@tonic-gate\ copyright: 26*0Sstevel@tonic-gate 27*0Sstevel@tonic-gate." Runtime storage access: " 28*0Sstevel@tonic-gate variable var-1 var-1 off 29*0Sstevel@tonic-gate 4 constant const-1 30*0Sstevel@tonic-gate 5 value val-1 31*0Sstevel@tonic-gate " variable (off) (get)" var-1 @ 0= .passed? 32*0Sstevel@tonic-gate " variable (on) (set)" var-1 on var-1 @ -1 = .passed? 33*0Sstevel@tonic-gate " variable (set)" 2 var-1 ! var-1 @ 2 = .passed? 34*0Sstevel@tonic-gate " constant.1" const-1 4 = .passed? 35*0Sstevel@tonic-gate " value (get)" val-1 5 = .passed? 36*0Sstevel@tonic-gate " value (set)" 2 to val-1 val-1 2 = .passed? 37*0Sstevel@tonic-gatecr 38*0Sstevel@tonic-gate 39*0Sstevel@tonic-gate." Compile time storage access: " 40*0Sstevel@tonic-gate " variable (get)" : vtest1 var-1 @ = .passed? ; 2 vtest1 41*0Sstevel@tonic-gate " variable (set)" : vtest2 1 var-1 ! 1 vtest1 ; vtest2 42*0Sstevel@tonic-gate " constant.2" : ctest const-1 const-1 + 8 = .passed? ; ctest 43*0Sstevel@tonic-gate " value (get)" : vtest3 val-1 = .passed? ; 2 vtest3 44*0Sstevel@tonic-gate " value (set)" : vtest4 1 to val-1 1 vtest3 ; vtest4 45*0Sstevel@tonic-gatecr 46*0Sstevel@tonic-gate 47