1254721Semaste/* 2254721Semaste * CDDL HEADER START 3254721Semaste * 4254721Semaste * The contents of this file are subject to the terms of the 5254721Semaste * Common Development and Distribution License (the "License"). 6254721Semaste * You may not use this file except in compliance with the License. 7254721Semaste * 8254721Semaste * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9254721Semaste * or http://www.opensolaris.org/os/licensing. 10254721Semaste * See the License for the specific language governing permissions 11254721Semaste * and limitations under the License. 12254721Semaste * 13254721Semaste * When distributing Covered Code, include this CDDL HEADER in each 14254721Semaste * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15254721Semaste * If applicable, add the following below this CDDL HEADER, with the 16254721Semaste * fields enclosed by brackets "[]" replaced with your own identifying 17254721Semaste * information: Portions Copyright [yyyy] [name of copyright owner] 18254721Semaste * 19254721Semaste * CDDL HEADER END 20254721Semaste */ 21254721Semaste 22254721Semaste/* 23254721Semaste * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24254721Semaste * Use is subject to license terms. 25254721Semaste */ 26254721Semaste 27254721Semaste/* 28254721Semaste * ASSERTION: 29254721Semaste * Create inline names from aliases created using typedef. 30254721Semaste * 31254721Semaste * SECTION: Type and Constant Definitions/Inlines 32254721Semaste * 33254721Semaste * NOTES: 34254721Semaste * 35254721Semaste */ 36254721Semaste 37254721Semaste#pragma ident "%Z%%M% %I% %E% SMI" 38254721Semaste 39254721Semaste#pragma D option quiet 40254721Semaste 41254721Semaste 42254721Semastetypedef char new_char; 43254721Semasteinline new_char char_var = 'c'; 44254721Semaste 45254721Semastetypedef int * pointer; 46254721Semasteinline pointer p = &`kmem_flags; 47254721Semaste 48254721SemasteBEGIN 49254721Semaste{ 50254721Semaste printf("char_var: %c\npointer p: %d", char_var, *p); 51254721Semaste exit(0); 52254721Semaste} 53254721Semaste