Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / Analysis / inline-unique-reports.c
blobe58870ea74ab8325914b6e5bcb8a93a6d0768814
1 // RUN: %clang_analyze_cc1 %s -analyzer-checker=core.NullDereference -analyzer-output=plist -Wno-error=implicit-int -o %t > /dev/null 2>&1
2 // RUN: %normalize_plist <%t | diff -ub %S/Inputs/expected-plists/inline-unique-reports.c.plist -
4 static inline bug(int *p) {
5 *p = 0xDEADBEEF;
8 void test_bug_1(void) {
9 int *p = 0;
10 bug(p);
13 void test_bug_2(void) {
14 int *p = 0;
15 bug(p);