Mitch Phillips f7c5c0d87b Revert "[Scudo] Make -fsanitize=scudo use standalone. Migrate tests."
This reverts commit 6911114d8cbed06a8a809c34ae07f4e3e89ab252.

Broke the QEMU sanitizer bots due to a missing header dependency. This
actually needs to be fixed on the bot-side, but for now reverting this
patch until I can fix up the bot.
2021-05-26 10:50:26 -07:00

21 lines
565 B
C

// RUN: %clang_scudo %s -o %t
// RUN: %run %t 2>&1 | FileCheck %s
// Tests that the allocator stats printing function exists and outputs
// "something". Currently that "something" is fairly nebulous, as the 32-bit
// primary doesn't output anything, and for the 64-bit one it's highly dependent
// on the size class map and potential library allocations. So keep it very
// generic for now.
#include <stdlib.h>
#include <sanitizer/scudo_interface.h>
int main(int argc, char **argv) {
free(malloc(1U));
__scudo_print_stats();
return 0;
}
// CHECK: Stats: