brintos

brintos / llvm-project-archived public Read only

0
0
Text · 288 B · 1c595ef Raw
14 lines · c
1// RUN: %clang %s -o %t && %run %t2 3#include <assert.h>4#include <stdio.h>5#include <sys/utsname.h>6 7int 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}14