URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
/* Check for proper pipe semantics at corner cases.
|
/* Check for proper pipe semantics at corner cases.
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
*/
|
*/
|
|
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <unistd.h>
|
#include <unistd.h>
|
#include <errno.h>
|
#include <errno.h>
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
if (pipe (NULL) != -1
|
if (pipe (NULL) != -1
|
|| errno != EFAULT)
|
|| errno != EFAULT)
|
{
|
{
|
perror ("pipe");
|
perror ("pipe");
|
abort ();
|
abort ();
|
}
|
}
|
|
|
printf ("pass\n");
|
printf ("pass\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.