| 1 |
// RUN: %clang_analyze_cc1 -analyzer-checker=osx,unix,core,optin.taint -w -verify %s |
| 2 |
// expected-no-diagnostics |
| 3 |
|
| 4 |
// Make sure we don't crash when someone redefines a system function we reason about. |
| 5 |
|
| 6 |
char memmove (void); |
| 7 |
char malloc(void); |
| 8 |
char system(void); |
| 9 |
char stdin(void); |
| 10 |
char memccpy(void); |
| 11 |
char free(void); |
| 12 |
char strdup(void); |
| 13 |
char atoi(void); |
| 14 |
|
| 15 |
int foo (void) { |
| 16 |
return memmove() + malloc() + system() + stdin() + memccpy() + free() + strdup() + atoi(); |
| 17 |
|
| 18 |
} |