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