Abraxas/Misra Home  Table of Contents

Module - m112.html

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.

Misra-C Test Suite for Module - m112.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 112: Required */

Rule 112: Required */

/* Bit fields of type signed int shall be at least 2 bits long. */

Bit fields of type signed int shall be at least 2 bits long. */
#include "misra.h"
static struct s
{
    
signed int p_a : 4; 
unsigned int p_b : 1; 
signed int p_c : 1; /*  RULE 112  */
} st;
static void
func112 ( void ) 



Function Name: func112()

{
    
    st.p_a = 0x1;
    
}

Abraxas/Misra Home  Table of Contents

ABRAXAS SOFTWARE - CodeCheck MISRA Test-Suite Misra-C:1998 Misra-C:2004.