☰
Debian Codegraph
@
1:21.1.8-7
1:21.1.8-13
1:21.1.8-12
1:21.1.8-11
1:21.1.8-10
/
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
NetBSD
/
group_from_gid.cpp
☽
☼
compiler-rt/test/sanitizer_common/TestCases/NetBSD/group_from_gid.cpp
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
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
}