Changeset View
Changeset View
Standalone View
Standalone View
test/scudo/mismatch.cpp
Show All 22 Lines | if (!strcmp(argv[1], "newfree")) { | ||||
int *p = new int; | int *p = new int; | ||||
assert(p); | assert(p); | ||||
free((void *)p); | free((void *)p); | ||||
} | } | ||||
return 0; | return 0; | ||||
} | } | ||||
// CHECK-dealloc: ERROR: allocation type mismatch when deallocating address | // CHECK-dealloc: ERROR: allocation type mismatch when deallocating address | ||||
// CHECK-realloc: ERROR: allocation type mismatch when reallocating address |