Abraxas/Misra Home  Table of Contents

Module - m111.html

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

Misra-C Test Suite for Module - m111.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 111: Required */

Rule 111: Required */

/* Bit fields shall only be defined to be of type unsigned int or */

Bit fields shall only be defined to be of type unsigned int or */

/* signed int. */

signed int. */
#include "misra.h"
static struct s
{
    
int p_a : 4; /*  RULE 111  */
signed int p_b : 4; 
unsigned int p_c : 4; 
unsigned int p_d : 4; 
long p_e : 4; /*  RULE 111  */
} st;
static void
func111 ( void ) 



Function Name: func111()

{
    
    st.p_a = 0x1;
    
}

Abraxas/Misra Home  Table of Contents

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