Skip to content

Commit b2ed9f9

Browse files
committed
Address review feedback: add another lit run without malloc checker
1 parent b69749a commit b2ed9f9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

clang/test/Analysis/stack-addr-ps.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
// RUN: %clang_analyze_cc1 \
2+
// RUN: -analyzer-checker=core,debug.ExprInspection \
3+
// RUN: -verify %s \
4+
// RUN: -Wno-undefined-bool-conversion
5+
// RUN: %clang_analyze_cc1 \
26
// RUN: -analyzer-checker=core,debug.ExprInspection,unix.Malloc \
37
// RUN: -verify %s \
48
// RUN: -Wno-undefined-bool-conversion
@@ -860,9 +864,9 @@ namespace alloca_region_pointer {
860864
void callee(char **pptr) {
861865
char local;
862866
*pptr = &local;
863-
}
867+
} // no crash
864868

865-
void top_alloca_no_crash() {
869+
void top_alloca_no_crash_fn() {
866870
char **pptr = (char**)__builtin_alloca(sizeof(char*));
867871
callee(pptr);
868872
}

0 commit comments

Comments
 (0)