blob: 46bb6a282bea1c83ccb667cf9c8d4c0212926989 [file] [log] [blame]
// RUN: %clangxx_asan -O0 %s -o %t && not %run %t 2>&1 | FileCheck %s
// Test the frexpl() interceptor.
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
int main() {
long double x = 3.14;
int *exp = (int *)malloc(sizeof(int));
free(exp);
double y = frexpl(x, exp);
// CHECK: use-after-free
// CHECK: SUMMARY
return 0;
}