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 5361a0a commit 8362ddbCopy full SHA for 8362ddb
compiler-rt/test/sanitizer_common/TestCases/get_allocated_begin.cpp
@@ -25,11 +25,13 @@ int main(void) {
25
// does not unpoison it.
26
const void *start = NULL;
27
for (int j = 0; j < sizes[i]; j++) {
28
- printf("j: %d\n", j);
29
30
start = __sanitizer_get_allocated_begin(array + j);
31
- printf("Start: %p (expected: %p)\n", start, array);
32
- fflush(stdout);
+ if (array != start) {
+ printf("j: %d\n", j);
+ printf("Start: %p (expected: %p)\n", start, array);
33
+ fflush(stdout);
34
+ }
35
assert(array == start);
36
}
37
0 commit comments