| // RUN: %clang_analyze_cc1 -triple i686-pc-linux-gnu -analyzer-checker=security.insecureAPI,security.FloatLoopCounter %s -verify |
| // expected-no-diagnostics |
| // This file complements 'security-syntax-checks.m', but tests that we omit |
| // specific checks on platforms where they don't make sense. |
| // Omit the 'rand' check since 'arc4random' is not available on Linux. |
| double erand48(unsigned short[3]); |
| long jrand48(unsigned short[3]); |
| void lcong48(unsigned short[7]); |
| long nrand48(unsigned short[3]); |
| erand48(a); // no-warning |
| jrand48(a); // no-warning |
| lcong48(a); // no-warning |
| nrand48(a); // no-warning |
| rand_r(&b); // no-warning |