☰
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
/
Posix
/
uname.c
☽
☼
compiler-rt/test/sanitizer_common/TestCases/Posix/uname.c
code
plain
raw
APACHE-2-LLVM-EXCEPTIONS
2003-2017 University of Illinois at Urbana-Champaign.
debian/copyright
1
// RUN: %clang %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <stdio.h>
5
#include <sys/utsname.h>
6
7
int main() {
8
struct utsname buf;
9
int err = uname(&buf);
10
assert(err >= 0);
11
printf("%s %s %s %s %s\n", buf.sysname, buf.nodename, buf.release,
12
buf.version, buf.machine);
13
}