err.D_PRINTF_DYN_TYPE.badwidth.d revision 178476
1283625Sdim/* 2283625Sdim * CDDL HEADER START 3283625Sdim * 4283625Sdim * The contents of this file are subject to the terms of the 5283625Sdim * Common Development and Distribution License (the "License"). 6283625Sdim * You may not use this file except in compliance with the License. 7283625Sdim * 8283625Sdim * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9283625Sdim * or http://www.opensolaris.org/os/licensing. 10283625Sdim * See the License for the specific language governing permissions 11283625Sdim * and limitations under the License. 12283625Sdim * 13283625Sdim * When distributing Covered Code, include this CDDL HEADER in each 14283625Sdim * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15283625Sdim * If applicable, add the following below this CDDL HEADER, with the 16283625Sdim * fields enclosed by brackets "[]" replaced with your own identifying 17283625Sdim * information: Portions Copyright [yyyy] [name of copyright owner] 18283625Sdim * 19283625Sdim * CDDL HEADER END 20283625Sdim */ 21283625Sdim 22283625Sdim/* 23283625Sdim * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24283625Sdim * Use is subject to license terms. 25283625Sdim */ 26283625Sdim 27283625Sdim#pragma ident "%Z%%M% %I% %E% SMI" 28285181Sdim 29283625Sdim/* 30283625Sdim * ASSERTION: 31283625Sdim * Tet dynamic width argument of non-integer type. 32283625Sdim * 33283625Sdim * SECTION: Output Formatting/printf() 34283625Sdim * 35283625Sdim */ 36283625Sdim 37283625SdimBEGIN 38283625Sdim{ 39283625Sdim printf("%*d\n", "foo", 1); 40283625Sdim} 41283625Sdim