diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:00:15 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:00:15 +0000 |
| commit | 63714eb5809e39666dec2454c354195e76f916ba (patch) | |
| tree | e3714cd783c265396c2ef3c117047e7c0ea41619 /test/msan/readdir64.cc | |
| parent | 0646903fc1f75f6e605754621119473ee083f4a4 (diff) | |
Notes
Diffstat (limited to 'test/msan/readdir64.cc')
| -rw-r--r-- | test/msan/readdir64.cc | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/test/msan/readdir64.cc b/test/msan/readdir64.cc deleted file mode 100644 index e77ada6ac8f2..000000000000 --- a/test/msan/readdir64.cc +++ /dev/null @@ -1,27 +0,0 @@ -// RUN: %clangxx_msan -O0 %s -o %t && %run %t -// RUN: %clangxx_msan -O1 %s -o %t && %run %t -// RUN: %clangxx_msan -O2 %s -o %t && %run %t -// RUN: %clangxx_msan -O3 %s -o %t && %run %t - -// RUN: %clangxx_msan -O0 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t -// RUN: %clangxx_msan -O1 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t -// RUN: %clangxx_msan -O2 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t -// RUN: %clangxx_msan -O3 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t - -// Test that readdir64 is intercepted as well as readdir. - -#include <sys/types.h> -#include <dirent.h> -#include <stdlib.h> - - -int main(void) { - DIR *dir = opendir("."); - struct dirent *d = readdir(dir); - if (d->d_name[0]) { - closedir(dir); - exit(0); - } - closedir(dir); - return 0; -} |
