blob: ae5bf2647f70536fed3fdbd77a63c36ef237c0b0 [file] [log] [blame]
Ted Kremenekcdc3a892012-08-24 20:39:55 +00001// RUN: %clang_cc1 -analyze -analyzer-checker=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}