aboutsummaryrefslogtreecommitdiff
path: root/sim/testsuite/cris/c/pipe7.c
blob: 552ddb8e1e896be1715828810f5ac49d1f89de98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* 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);
}