// RUN: %clangxx_asan -O0 %s -o %t && %run %t // This fails on i386 Linux due to a glibc versioned symbols mixup. // REQUIRES: asan-64-bits #include #include int main() { FILE *fp = fopen("/dev/null", "w"); assert(fp); freopen(NULL, "a", fp); fclose(fp); return 0; }