| 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(pid: 0, param: ¶m); |
| 10 | assert(res == 0); |
| 11 | if (param.sched_priority == 42) printf(format: ".\n"); |
| 12 | return 0; |
| 13 | } |
| 14 |
