2018-06-13 03:07:41 +08:00
|
|
|
// RUN: %clang_analyze_cc1 %s -analyzer-checker=core.NullDereference -analyzer-output=plist -o %t > /dev/null 2>&1
|
2019-06-11 22:21:32 +08:00
|
|
|
// RUN: %normalize_plist <%t | diff -ub %S/Inputs/expected-plists/inline-unique-reports.c.plist -
|
2012-01-26 07:47:14 +08:00
|
|
|
|
|
|
|
static inline bug(int *p) {
|
|
|
|
*p = 0xDEADBEEF;
|
|
|
|
}
|
|
|
|
|
|
|
|
void test_bug_1() {
|
|
|
|
int *p = 0;
|
|
|
|
bug(p);
|
|
|
|
}
|
|
|
|
|
|
|
|
void test_bug_2() {
|
|
|
|
int *p = 0;
|
|
|
|
bug(p);
|
|
|
|
}
|
|
|
|
|
2012-06-06 06:00:52 +08:00
|
|
|
|