[analyzer] One more pointer escape test.

llvm-svn: 156214
This commit is contained in:
Anna Zaks 2012-05-04 22:18:36 +00:00
parent cabbae653e
commit 7577686a41
1 changed files with 11 additions and 0 deletions

View File

@ -24,3 +24,14 @@ void r11160612_3() {
char *x = (char*)malloc(12);
const_ptr_and_callback_def_param(0, x, 12);
}
// Test member function pointer.
struct CanFreeMemory {
static void myFree(void*);
};
//This is handled because we look at the type of the parameter(not argument).
void r11160612_3(CanFreeMemory* p) {
char *x = (char*)malloc(12);
const_ptr_and_callback_def_param(0, x, 12, p->myFree);
}