☰
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
/
gid_from_group.cpp
☽
☼
compiler-rt/test/sanitizer_common/TestCases/NetBSD/gid_from_group.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
6
int main(void) {
7
gid_t nobody;
8
9
if (gid_from_group("nobody", &nobody) == -1)
10
exit(1);
11
12
if (nobody)
13
exit(0);
14
15
return 0;
16
}