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
[NFC][AArch64] Explicitly define undefined bits for instructions (#122129)
[llvm-project.git]
/
compiler-rt
/
test
/
sanitizer_common
/
TestCases
/
Linux
/
sched_getparam.cpp
blob
390c656fe20938edbf438a3bece44cfe8e43cabd
1
// RUN: %clangxx -O0 %s -o %t && %run %t
2
3
#include <assert.h>
4
#include <sched.h>
5
#include <stdio.h>
6
7
int
main
(
void
) {
8
struct
sched_param param
;
9
int
res
=
sched_getparam
(
0
, &
param
);
10
assert
(
res
==
0
);
11
if
(
param
.
sched_priority
==
42
)
printf
(
".
\n
"
);
12
return
0
;
13
}