]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/test/tsan/Darwin/realloc-zero.cc
1 // Test that realloc(nullptr, 0) return a non-NULL pointer.
3 // RUN: %clang_tsan %s -o %t
4 // RUN: %run %t 2>&1 | FileCheck %s
6 #include <malloc/malloc.h>
12 void *p
= realloc(NULL
, 0);
16 fprintf(stderr
, "Okay.\n");