repo.or.cz
/
blocksruntime.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[ASan/Win] Add a comment about DCL-using-static vs threads
[blocksruntime.git]
/
test
/
msan
/
dlerror.cc
blob
2c726d36041eff7430441b412a178cd1802f240a
1
// RUN: %clangxx_msan -m64 -O0 %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <dlfcn.h>
5
#include <stdio.h>
6
#include <string.h>
7
8
int
main
(
void
) {
9
void
*
p
=
dlopen
(
"/bad/file/name"
,
RTLD_NOW
);
10
assert
(!
p
);
11
char
*
s
=
dlerror
();
12
printf
(
"%s, %zu
\n
"
,
s
,
strlen
(
s
));
13
return
0
;
14
}