blob: 3c08b5e8964263fc972618eeb2b989e342651a2f [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 () {
Anna Zaks5a389f12012-04-16 21:51:03 +000015 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
Anna Zaks273ed982012-04-12 22:36:43 +000016
17}