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
/
initgroups.cpp
blob
974b1cbaa666357e9a28b8cffb6d7a3c1ad89375
1
// RUN: %clangxx_msan -O0 %s -o %t && %run %t
2
3
#include <sys/types.h>
4
#include <grp.h>
5
#include <unistd.h>
// FreeBSD declares initgroups() here.
6
7
int
main
(
void
) {
8
initgroups
(
"root"
,
0
);
9
// The above fails unless you are root. Does not matter, MSan false positive
10
// (which we are testing for) happens anyway.
11
return
0
;
12
}