repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Posix
/
uname.c
blob
1c595ef20ad709baba8015049a58c6fd4bbe64d1
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
}