redefined_system.c revision 273ed9870aa064992fb3c25a1f4d8973b10ad36e
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