Advertisement
Archon

MISRA: before and after

Nov 14th, 2010
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement