blob: 16f03abe12e5218e7148ecb0dbe6e7084858496a [file] [log] [blame]
Stephen Hines0e2c34f2015-03-23 12:09:02 -07001// RUN: %clang_cc1 -analyze -analyzer-checker=osx,unix,core,alpha.security.taint -w -verify %s
Andy Gibbs8e8fb3b2012-10-19 12:44:48 +00002// expected-no-diagnostics
Anna Zaks273ed982012-04-12 22:36:43 +00003
4// Make sure we don't crash when someone redefines a system function we reason about.
5
6char memmove ();
7char malloc();
8char system();
9char stdin();
10char memccpy();
11char free();
12char strdup();
13char atoi();
14
15int foo () {
Anna Zaks5a389f12012-04-16 21:51:03 +000016 return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi();
Anna Zaks273ed982012-04-12 22:36:43 +000017
18}