summaryrefslogtreecommitdiff
path: root/sim/testsuite/sim/cris/c/sched5.c
blob: ddfe14d03c36332c0e3d957be69353dbf07f856c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*
#notarget: cris*-*-elf
*/

#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
int main (void)
{
  int Min = sched_get_priority_min (SCHED_OTHER);
  int Max = sched_get_priority_max (SCHED_OTHER);
  if (Min != 0 || Max != 0)
    {
      fprintf (stderr, "min: %d, max: %d\n", Min, Max);
      abort ();
    }
  printf ("pass\n");
  exit (0);
}