Abraxas/Misra Home  Table of Contents

Module - m120.html

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

Misra-C Test Suite for Module - m120.c

/* Misra C Enforcement Testing */

Misra C Enforcement Testing */

/* Rule 120: Required */

Rule 120: Required */

/* The macro offsetof shall not be used. */

The macro offsetof shall not be used. */
#include 
#include "misra.h"
static struct s
{
    
int mem;
} st;
static void
func120 ( void ) 



Function Name: func120()

{
    
size_t of;
    
    of = offsetof ( struct s, mem ) ; /*  RULE 120  */
    
}

Abraxas/Misra Home  Table of Contents

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