1214503Srpaulo/* 2214503Srpaulo * CDDL HEADER START 3214503Srpaulo * 4214503Srpaulo * The contents of this file are subject to the terms of the 5214503Srpaulo * Common Development and Distribution License (the "License"). 6214503Srpaulo * You may not use this file except in compliance with the License. 7214503Srpaulo * 8214503Srpaulo * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9214503Srpaulo * or http://www.opensolaris.org/os/licensing. 10214503Srpaulo * See the License for the specific language governing permissions 11214503Srpaulo * and limitations under the License. 12214503Srpaulo * 13214503Srpaulo * When distributing Covered Code, include this CDDL HEADER in each 14214503Srpaulo * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15214503Srpaulo * If applicable, add the following below this CDDL HEADER, with the 16214503Srpaulo * fields enclosed by brackets "[]" replaced with your own identifying 17214503Srpaulo * information: Portions Copyright [yyyy] [name of copyright owner] 18214503Srpaulo * 19214503Srpaulo * CDDL HEADER END 20214503Srpaulo */ 21214503Srpaulo 22214503Srpaulo/* 23252726Srpaulo * Copyright (c) 2011, Joyent, Inc. All rights reserved. 24214503Srpaulo */ 25214503Srpaulo 26214503Srpaulo#pragma D option quiet 27214503Srpaulo 28214503SrpauloBEGIN 29214503Srpaulo{ 30214503Srpaulo i = 0; 31214503Srpaulo 32214503Srpaulo input[i] = "ahi"; 33214503Srpaulo expected[i++] = "AHI"; 34214503Srpaulo 35214503Srpaulo input[i] = "MaHi!"; 36214503Srpaulo expected[i++] = "MAHI!"; 37214503Srpaulo 38214503Srpaulo input[i] = " dace-9"; 39214503Srpaulo expected[i++] = " DACE-9"; 40214503Srpaulo 41214503Srpaulo input[i] = "!@#$%"; 42214503Srpaulo expected[i++] = "!@#$%"; 43214503Srpaulo 44214503Srpaulo i = 0; 45214503Srpaulo} 46214503Srpaulo 47214503Srpaulotick-1ms 48214503Srpaulo/input[i] != NULL && (this->out = toupper(input[i])) != expected[i]/ 49214503Srpaulo{ 50214503Srpaulo printf("expected toupper(\"%s\") to be \"%s\"; found \"%s\"\n", 51214503Srpaulo input[i], expected[i], this->out); 52214503Srpaulo exit(1); 53214503Srpaulo} 54214503Srpaulo 55214503Srpaulotick-1ms 56214503Srpaulo/input[i] != NULL/ 57214503Srpaulo{ 58214503Srpaulo printf("toupper(\"%s\") is \"%s\", as expected\n", 59214503Srpaulo input[i], expected[i]); 60214503Srpaulo} 61214503Srpaulo 62214503Srpaulotick-1ms 63214503Srpaulo/input[i++] == NULL/ 64214503Srpaulo{ 65214503Srpaulo exit(0); 66214503Srpaulo} 67214503Srpaulo