blob: 552ddb8e1e896be1715828810f5ac49d1f89de98 [file] [log] [blame]
/* Check for proper pipe semantics at corner cases.
#notarget: cris*-*-elf
*/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
int main (void)
{
if (pipe (NULL) != -1
|| errno != EFAULT)
{
perror ("pipe");
abort ();
}
printf ("pass\n");
exit (0);
}