Files
clang-p2996/compiler-rt/test/sanitizer_common/TestCases/Linux/sched_getparam.cpp
Nico Weber 74989aff53 compiler-rt: Rename cc files below test/sanitizer_common to cpp
See r367803 and similar other changes.

llvm-svn: 367863
2019-08-05 13:57:03 +00:00

14 lines
268 B
C++

// RUN: %clangxx -O0 %s -o %t && %run %t
#include <assert.h>
#include <sched.h>
#include <stdio.h>
int main(void) {
struct sched_param param;
int res = sched_getparam(0, &param);
assert(res == 0);
if (param.sched_priority == 42) printf(".\n");
return 0;
}