[previous] MISRA C:2012  Rule-15.2:  (Required) [next] The goto statement shall jump to a label declared later in the same function

Example Code:


#pragma PRQA_MESSAGES_OFF 2752

#include "misra.h"
#include "m3cmex.h"

extern int16_t rule_1502( void )
{

L: s16a = s16b;
   ++s16b;
   if (s16b == 10)
   {
       goto L;                          /* 2001 */
   }

   return 1;
}


No QAC messages cover this rule.



(c) The Motor Industry Research Association, 2012
QA C Source Code Analyser 8.1.2
MISRA C:2012 Compliance Module 1.0
© 2013 Programming Research
www.programmingresearch.com
Personality Groups | Glossary | Message Index | MISRA C:2012 Rule Index Contents