blob: 3f585c4ef689e5c709542a87c2160b66335e2a5e [file] [log] [blame]
Anna Zaks273ed982012-04-12 22:36:43 +00001// 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}