memcheck: Handle Err_ReallocSizeZero in MC_(eq_Error)
[valgrind.git] / memcheck / tests / pipe.c
blobcf97739c84f2ff3f796b1ffca3eb58d67d98b2b4
1 // This is a regtest for bug #113230, in which 64-bit platforms mistakenly
2 // behaved as if pipe() took an array of 64-bit ints, when it really takes
3 // an array of 32-bit ints.
5 #include <stdio.h>
6 #include <unistd.h>
7 #include <stdlib.h>
9 int main(int argc, char *argv[])
11 int *filedes = malloc(2 * sizeof(int));
13 pipe(filedes);
15 return 0;