repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[AA] Rename CaptureInfo -> CaptureAnalysis (NFC) (#116842)
[llvm-project.git]
/
compiler-rt
/
test
/
msan
/
ctermid.cpp
blob
a2818e63068642e1ec3ed0a9a49b48f469cbd29f
1
// RUN: %clangxx_msan -std=c++11 -O0 %s -o %t && %run %t
2
3
#include <sanitizer/msan_interface.h>
4
#include <stdio.h>
5
#include <string.h>
6
7
int
main
(
void
) {
8
unsigned char
s
[
L_ctermid
+
1
];
9
char
*
res
=
ctermid
((
char
*)
s
);
10
if
(
res
)
11
printf
(
"%zd
\n
"
,
strlen
(
res
));
12
return
0
;
13
}