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 6bccd96 commit a997d45Copy full SHA for a997d45
compiler-rt/lib/asan/tests/asan_test.cpp
@@ -395,7 +395,7 @@ TEST(AddressSanitizer, ReallocTest) {
395
}
396
free(ptr);
397
// Realloc pointer returned by malloc(0).
398
- volatile void *ptr0 = malloc(0);
+ void *ptr0 = malloc(0);
399
int *ptr2 = Ident((int *)ptr0);
400
ptr2 = Ident((int*)realloc(ptr2, sizeof(*ptr2)));
401
*ptr2 = 42;
0 commit comments