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
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
NetBSD
/
group_from_gid.cpp
blob
eb39da7b2b50434bd4367ae95a861a7cc115d69e
1
// RUN: %clangxx -O0 -g %s -o %t && %run %t
2
3
#include <grp.h>
4
#include <stdlib.h>
5
#include <string.h>
6
7
int
main
(
void
) {
8
const char
*
nobody
;
9
10
if
(!(
nobody
=
group_from_gid
(
0
,
0
)))
11
exit
(
1
);
12
13
if
(
strlen
(
nobody
))
14
exit
(
0
);
15
16
return
0
;
17
}