1 // RUN: %clangxx_msan -O0 %s -o %t && %run %t %p 2>&1 | FileCheck %s
2 // RUN: %clangxx_msan -O0 -D_FILE_OFFSET_BITS=64 %s -o %t && %run %t %p 2>&1 | FileCheck %s
3 // RUN: %clangxx_msan -O3 %s -o %t && %run %t %p 2>&1 | FileCheck %s
11 int main(int argc
, char *argv
[]) {
14 snprintf(buf
, sizeof(buf
), "%s/%s", argv
[1], "glob_test_root/*a");
17 int res
= glob(buf
, 0, 0, &globbuf
);
19 printf("%d %s\n", errno
, strerror(errno
));
21 assert(globbuf
.gl_pathc
== 2);
22 printf("%zu\n", strlen(globbuf
.gl_pathv
[0]));
23 printf("%zu\n", strlen(globbuf
.gl_pathv
[1]));