1*7c3d14c8STreehugger Robot // RUN: %clangxx_asan -O0 %s -o %t && %run %t 2*7c3d14c8STreehugger Robot 3*7c3d14c8STreehugger Robot // This fails on i386 Linux due to a glibc versioned symbols mixup. 4*7c3d14c8STreehugger Robot // REQUIRES: asan-64-bits 5*7c3d14c8STreehugger Robot 6*7c3d14c8STreehugger Robot #include <assert.h> 7*7c3d14c8STreehugger Robot #include <stdio.h> 8*7c3d14c8STreehugger Robot main()9*7c3d14c8STreehugger Robotint main() { 10*7c3d14c8STreehugger Robot FILE *fp = fopen("/dev/null", "w"); 11*7c3d14c8STreehugger Robot assert(fp); 12*7c3d14c8STreehugger Robot freopen(NULL, "a", fp); 13*7c3d14c8STreehugger Robot fclose(fp); 14*7c3d14c8STreehugger Robot return 0; 15*7c3d14c8STreehugger Robot } 16