blob: d0335d9dd5cb4b71bf30874a8a1e0c13e10ee1b1 [file] [log] [blame]
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
// XFAIL: target-is-mips64el
#include <assert.h>
#include <dlfcn.h>
#include <stdio.h>
#include <string.h>
int main(void) {
void *p = dlopen("/bad/file/name", RTLD_NOW);
assert(!p);
char *s = dlerror();
printf("%s, %zu\n", s, strlen(s));
return 0;
}