Debian Codegraph @

compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c

raw
1 // RUN: %clang -std=c23 -O0 %s -o %t && %run %t
2 // UNSUPPORTED: asan, hwasan, ubsan
3
4 #include <stddef.h>
5 #include <stdlib.h>
6
7 extern void free_sized(void *p, size_t size);
8
9 int main() {
10 volatile void *p = malloc(64);
11 free_sized((void *)p, 64);
12 return 0;
13 }