blob: 2a49b9589eeb0e247fecc5c891e2a5b35dab1fbf [file] [log] [blame]
/* Check corner error case: specifying unimplemented resource.
#notarget: cris*-*-elf
*/
#include <sys/time.h>
#include <sys/resource.h>
#include <unistd.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
int main (void)
{
struct rlimit lim;
if (getrlimit (RLIMIT_NPROC, &lim) != -1
|| errno != EINVAL)
abort ();
printf ("pass\n");
exit (0);
}