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
7extern void free_sized(void *p, size_t size);
8
9int main() {
10 volatile void *p = malloc(size: 64);
11 free_sized(p: (void *)p, size: 64);
12 return 0;
13}
14

source code of compiler-rt/test/sanitizer_common/TestCases/Linux/free_sized.c