Pirama Arumuga Nainar | 799172d | 2016-03-03 15:50:30 -0800 | [diff] [blame^] | 1 | // RUN: %clangxx_asan -O0 %s -o %t && %run %t |
2 | |||||
3 | // This fails on i386 Linux due to a glibc versioned symbols mixup. | ||||
4 | // REQUIRES: asan-64-bits | ||||
5 | |||||
6 | #include <assert.h> | ||||
7 | #include <stdio.h> | ||||
8 | |||||
9 | int main() { | ||||
10 | FILE *fp = fopen("/dev/null", "w"); | ||||
11 | assert(fp); | ||||
12 | freopen(NULL, "a", fp); | ||||
13 | fclose(fp); | ||||
14 | return 0; | ||||
15 | } |