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 091a731 commit e42e46aCopy full SHA for e42e46a
compiler-rt/test/hwasan/TestCases/libc_thread_freeres.c
@@ -1,4 +1,4 @@
1
-// RUN: %clang_hwasan -Wno-error=return-type %s -o %t && %env_hwasan_opts=random_tags=1 %run %t
+// RUN: %clang_hwasan %s -o %t && %env_hwasan_opts=random_tags=1 %run %t
2
3
#include <pthread.h>
4
#include <sanitizer/hwasan_interface.h>
@@ -11,6 +11,7 @@ void *ThreadFn(void *) {
11
__hwasan_enable_allocator_tagging();
12
// This will trigger memory deallocation in __strerror_thread_freeres,
13
// at a point when HwasanThread is already gone.
14
+ return NULL;
15
}
16
17
int main() {
0 commit comments