Anna Zaks | 273ed98 | 2012-04-12 22:36:43 +0000 | [diff] [blame] | 1 | // 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 | |
| 5 | char memmove (); |
| 6 | char malloc(); |
| 7 | char system(); |
| 8 | char stdin(); |
| 9 | char memccpy(); |
| 10 | char free(); |
| 11 | char strdup(); |
| 12 | char atoi(); |
| 13 | |
| 14 | int foo () { |
Anna Zaks | 5a389f1 | 2012-04-16 21:51:03 +0000 | [diff] [blame^] | 15 | return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi(); |
Anna Zaks | 273ed98 | 2012-04-12 22:36:43 +0000 | [diff] [blame] | 16 | |
| 17 | } |