19 lines · c
1// RUN: %clang_analyze_cc1 -analyzer-checker=osx,unix,core,optin.taint -w -verify %s2// expected-no-diagnostics3 4// Make sure we don't crash when someone redefines a system function we reason about.5 6char memmove (void);7char malloc(void);8char system(void);9char stdin(void);10char memccpy(void);11char free(void);12char strdup(void);13char atoi(void);14 15int foo (void) {16 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();17 18}19