You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
279 B

// RUN: %clangxx_msan -O0 %s -o %t && %run %t
#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;
}