// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s // Test the frexp() interceptor. #include #include #include int main() { double x = 3.14; int *exp = (int*)malloc(sizeof(int)); free(exp); double y = frexp(x, exp); // CHECK: use-after-free // CHECK: SUMMARY return 0; }