1 5984 jhaslam /* 2 5984 jhaslam * CDDL HEADER START 3 5984 jhaslam * 4 5984 jhaslam * The contents of this file are subject to the terms of the 5 5984 jhaslam * Common Development and Distribution License (the "License"). 6 5984 jhaslam * You may not use this file except in compliance with the License. 7 5984 jhaslam * 8 5984 jhaslam * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 5984 jhaslam * or http://www.opensolaris.org/os/licensing. 10 5984 jhaslam * See the License for the specific language governing permissions 11 5984 jhaslam * and limitations under the License. 12 5984 jhaslam * 13 5984 jhaslam * When distributing Covered Code, include this CDDL HEADER in each 14 5984 jhaslam * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 5984 jhaslam * If applicable, add the following below this CDDL HEADER, with the 16 5984 jhaslam * fields enclosed by brackets "[]" replaced with your own identifying 17 5984 jhaslam * information: Portions Copyright [yyyy] [name of copyright owner] 18 5984 jhaslam * 19 5984 jhaslam * CDDL HEADER END 20 5984 jhaslam */ 21 5984 jhaslam 22 5984 jhaslam /* 23 5984 jhaslam * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24 5984 jhaslam * Use is subject to license terms. 25 5984 jhaslam */ 26 5984 jhaslam 27 5984 jhaslam #pragma ident "%Z%%M% %I% %E% SMI" 28 5984 jhaslam 29 5984 jhaslam 30 5984 jhaslam /* 31 5984 jhaslam * ASSERTION: 32 5984 jhaslam * Positive avg() test using negative values 33 5984 jhaslam * 34 5984 jhaslam * SECTION: Aggregations/Aggregations 35 5984 jhaslam * 36 5984 jhaslam * NOTES: This is a simple verifiable positive test of the avg() function. 37 5984 jhaslam */ 38 5984 jhaslam 39 5984 jhaslam #pragma D option quiet 40 5984 jhaslam 41 5984 jhaslam BEGIN 42 5984 jhaslam { 43 5984 jhaslam @ = avg(0); 44 5984 jhaslam @ = avg(-900); 45 5984 jhaslam exit(0); 46 5984 jhaslam } 47