/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
/*
* ASSERTION: C and D compilers try to pack bits as efficiently as possible.
*
* SECTION: Structs and Unions/Bit-Fields
*/
struct bitRecord1 {
int a : 1;
} var1;
struct bitRecord2 {
int a : 1;
int b : 3;
} var2;
struct bitRecord3 {
int a : 1;
int b : 3;
int c : 3;
} var3;
struct bitRecord4 {
int a : 1;
int b : 3;
int c : 3;
int d : 3;
} var4;
struct bitRecord5 {
int c : 12;
int a : 10;
int b : 3;
} var5;
struct bitRecord6 {
int a : 20;
int b : 3;
int c : 12;
} var6;
struct bitRecord7 {
long c : 32;
long long d: 9;
int e: 1;
} var7;
struct bitRecord8 {
char a : 2;
short b : 12;
long c : 32;
} var8;
struct bitRecord12 {
int a : 30;
int b : 30;
int c : 32;
} var12;
{
exit(0);
}
{
exit(1);
}