mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-20 12:05:48 -04:00

Because all our languages are C-based, there's no reason to enable this checker only on UNIX targets. Patch by Donát Nagy! Differential Revision: https://reviews.llvm.org/D52722 llvm-svn: 343632
18 lines
814 B
C
18 lines
814 B
C
// RUN: %clang_analyze_cc1 -analyzer-checker=apiModeling.StdCLibraryFunctions -verify %s
|
|
// RUN: %clang_analyze_cc1 -triple i686-unknown-linux -analyzer-checker=apiModeling.StdCLibraryFunctions -verify %s
|
|
// RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux -analyzer-checker=apiModeling.StdCLibraryFunctions -verify %s
|
|
// RUN: %clang_analyze_cc1 -triple armv7-a15-linux -analyzer-checker=apiModeling.StdCLibraryFunctions -verify %s
|
|
// RUN: %clang_analyze_cc1 -triple thumbv7-a15-linux -analyzer-checker=apiModeling.StdCLibraryFunctions -verify %s
|
|
|
|
// This test tests crashes that occur when standard functions are available
|
|
// for inlining.
|
|
|
|
// expected-no-diagnostics
|
|
|
|
int isdigit(int _) { return !0; }
|
|
void test_redefined_isdigit(int x) {
|
|
int (*func)(int) = isdigit;
|
|
for (; func(x);) // no-crash
|
|
;
|
|
}
|