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