summaryrefslogtreecommitdiff
path: root/test/sanitizer_common/TestCases/Linux/sched_getparam.cc
blob: 390c656fe20938edbf438a3bece44cfe8e43cabd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// 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;
}