daily pastebin goal
31%
SHARE
TWEET

MISRA: before and after

Archon Nov 14th, 2010 96 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //without MISRA
  2. int main(){
  3.    while (new int[1000]);
  4. }
  5.  
  6.  
  7. //with MISRA
  8. typedef int int_t;
  9.  
  10. int main(){
  11.    while (new int_t[unsigned(1000)] != 0){
  12.       ;
  13.    }
  14.    return 0;
  15. }
RAW Paste Data
Top