xref: /netbsd-src/external/gpl3/gdb/dist/sim/testsuite/cris/c/sched5.c (revision 345cf9fb81bd0411c53e25d62cd93bdcaa865312)
1 /*
2 #progos: linux
3 */
4 
5 #include <sched.h>
6 #include <stdio.h>
7 #include <stdlib.h>
8 int main (void)
9 {
10   int Min = sched_get_priority_min (SCHED_OTHER);
11   int Max = sched_get_priority_max (SCHED_OTHER);
12   if (Min != 0 || Max != 0)
13     {
14       fprintf (stderr, "min: %d, max: %d\n", Min, Max);
15       abort ();
16     }
17   printf ("pass\n");
18   exit (0);
19 }
20