Home | History | Annotate | Download | only in Analysis
      1 // RUN: %clang_cc1 -analyze -analyzer-checker=unix,core,alpha.security.taint -w -verify %s
      2 
      3 // Make sure we don't crash when someone redefines a system function we reason about.
      4 
      5 char memmove ();
      6 char malloc();
      7 char system();
      8 char stdin();
      9 char memccpy();
     10 char free();
     11 char strdup();
     12 char atoi();
     13 
     14 int foo () {
     15   return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
     16 
     17 }
     18