1 // RUN: %clang_analyze_cc1 -triple i686-pc-linux-gnu %s -verify \
2 // RUN: -analyzer-checker=security.insecureAPI \
3 // RUN: -analyzer-checker=security.FloatLoopCounter
5 // expected-no-diagnostics
7 // This file complements 'security-syntax-checks.m', but tests that we omit
8 // specific checks on platforms where they don't make sense.
10 // Omit the 'rand' check since 'arc4random' is not available on Linux.
13 double erand48(unsigned short[3]);
14 long jrand48(unsigned short[3]);
15 void lcong48(unsigned short[7]);
18 long nrand48(unsigned short[3]);
20 int rand_r(unsigned *);
28 drand48(); // no-warning
29 erand48(a
); // no-warning
30 jrand48(a
); // no-warning
31 lcong48(a
); // no-warning
32 lrand48(); // no-warning
33 mrand48(); // no-warning
34 nrand48(a
); // no-warning
35 rand_r(&b
); // no-warning
36 random(); // no-warning