Abraxas/Misra Home  Table of Contents

Module - m113.html

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

Misra-C Test Suite for Module - m113.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 113: Required */

Rule 113: Required */

/* All the members of a structure ( or union ) shall be named and shall */

All the members of a structure ( or union ) shall be named and shall */

/* only be accessed via their name. */

only be accessed via their name. */
#include "misra.h"
static struct s
{
    
signed int p_a : 4; 
unsigned int p_b : 1; 
    signed int : 8; /*  RULE 113  */
unsigned int p_c : 4; 
} st;
static void
func113 ( void ) 



Function Name: func113()

{
    
    st.p_a = 0x1;
    
}

Abraxas/Misra Home  Table of Contents

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