1178476Sjb/* 2178476Sjb * CDDL HEADER START 3178476Sjb * 4178476Sjb * The contents of this file are subject to the terms of the 5178476Sjb * Common Development and Distribution License (the "License"). 6178476Sjb * You may not use this file except in compliance with the License. 7178476Sjb * 8178476Sjb * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9178476Sjb * or http://www.opensolaris.org/os/licensing. 10178476Sjb * See the License for the specific language governing permissions 11178476Sjb * and limitations under the License. 12178476Sjb * 13178476Sjb * When distributing Covered Code, include this CDDL HEADER in each 14178476Sjb * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15178476Sjb * If applicable, add the following below this CDDL HEADER, with the 16178476Sjb * fields enclosed by brackets "[]" replaced with your own identifying 17178476Sjb * information: Portions Copyright [yyyy] [name of copyright owner] 18178476Sjb * 19178476Sjb * CDDL HEADER END 20178476Sjb */ 21178476Sjb 22178476Sjb/* 23178476Sjb * Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24178476Sjb * Use is subject to license terms. 25178476Sjb */ 26178476Sjb 27178476Sjb/* 28178476Sjb * ASSERTION: 29178476Sjb * Declare different types of inline data types. 30178476Sjb * 31178476Sjb * SECTION: Type and Constant Definitions/Inlines 32178476Sjb * 33178476Sjb * NOTES: The commented lines defining floats and doubles should be uncommented 34178476Sjb * once the functionality is provided. 35178476Sjb * 36178476Sjb */ 37178476Sjb 38178476Sjb#pragma ident "%Z%%M% %I% %E% SMI" 39178476Sjb 40178476Sjb#pragma D option quiet 41178476Sjb 42178476Sjb 43178476Sjbinline char new_char = 'c'; 44178476Sjbinline short new_short = 10; 45178476Sjbinline int new_int = 100; 46178476Sjbinline long new_long = 1234567890; 47178476Sjbinline long long new_long_long = 1234512345; 48178476Sjbinline int8_t new_int8 = 'p'; 49178476Sjbinline int16_t new_int16 = 20; 50178476Sjbinline int32_t new_int32 = 200; 51178476Sjbinline int64_t new_int64 = 2000000; 52178476Sjbinline intptr_t new_intptr = 0x12345; 53178476Sjbinline uint8_t new_uint8 = 'q'; 54178476Sjbinline uint16_t new_uint16 = 30; 55178476Sjbinline uint32_t new_uint32 = 300; 56178476Sjbinline uint64_t new_uint64 = 3000000; 57178476Sjbinline uintptr_t new_uintptr = 0x67890; 58178476Sjb/* inline float new_float = 1.23456; 59178476Sjbinline double new_double = 2.34567890; 60178476Sjbinline long double new_long_double = 3.567890123; 61178476Sjb*/ 62178476Sjb 63178476Sjbinline int * pointer = &`kmem_flags; 64178476Sjb 65178476SjbBEGIN 66178476Sjb{ 67178476Sjb exit(0); 68178476Sjb} 69