Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / std-c-library-functions-inlined.c
blob5277a6efbe0791b6bcfda9b2a571ae1a393ce60e
1 // RUN: %clang_analyze_cc1 -analyzer-checker=unix.StdCLibraryFunctions -verify %s
2 // RUN: %clang_analyze_cc1 -triple i686-unknown-linux -analyzer-checker=unix.StdCLibraryFunctions -verify %s
3 // RUN: %clang_analyze_cc1 -triple x86_64-unknown-linux -analyzer-checker=unix.StdCLibraryFunctions -verify %s
4 // RUN: %clang_analyze_cc1 -triple armv7-a15-linux -analyzer-checker=unix.StdCLibraryFunctions -verify %s
5 // RUN: %clang_analyze_cc1 -triple thumbv7-a15-linux -analyzer-checker=unix.StdCLibraryFunctions -verify %s
7 // This test tests crashes that occur when standard functions are available
8 // for inlining.
10 // expected-no-diagnostics
12 int isdigit(int _) { return !0; }
13 void test_redefined_isdigit(int x) {
14 int (*func)(int) = isdigit;
15 for (; func(x);) // no-crash