bolt/deps/llvm-18.1.8/compiler-rt/test/sanitizer_common/TestCases/Posix/uname.c
2025-02-14 19:21:04 +01:00

13 lines
288 B
C

// RUN: %clang %s -o %t && %run %t
#include <assert.h>
#include <stdio.h>
#include <sys/utsname.h>
int main() {
struct utsname buf;
int err = uname(&buf);
assert(err >= 0);
printf("%s %s %s %s %s\n", buf.sysname, buf.nodename, buf.release,
buf.version, buf.machine);
}