We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b69749a commit b2ed9f9Copy full SHA for b2ed9f9
clang/test/Analysis/stack-addr-ps.cpp
@@ -1,4 +1,8 @@
1
// 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 \
6
// RUN: -analyzer-checker=core,debug.ExprInspection,unix.Malloc \
7
// RUN: -verify %s \
8
// RUN: -Wno-undefined-bool-conversion
@@ -860,9 +864,9 @@ namespace alloca_region_pointer {
860
864
void callee(char **pptr) {
861
865
char local;
862
866
*pptr = &local;
863
-}
867
+} // no crash
868
-void top_alloca_no_crash() {
869
+void top_alloca_no_crash_fn() {
870
char **pptr = (char**)__builtin_alloca(sizeof(char*));
871
callee(pptr);
872
}
0 commit comments