#include void example ( void ) { /* ----------------- Example code from MISRA C:2012 begin ----------------- */ struct s; struct t; struct s *sp; struct t *tp; int16_t *ip; #include ip = ( int16_t * ) sp; /* Non-compliant */ sp = ( struct s * ) 1234; /* Non-compliant */ tp = ( struct t * ) sp; /* Non-compliant */ sp = NULL; /* Compliant */ struct s *f ( void ); ( void ) f ( ); /* Compliant */ /* ------------------ Example code from MISRA C:2012 end ------------------ */ }