#include <unistd.h>
#include <err.h>
#define TESTLEN 16384

int 
main(int argc, char **argv)
{
    char buf[TESTLEN];
    int x[2];
    if (pipe(x) != 0)
	err(-1, "pipe");
    if (close(x[1]) != 0)
	err(-2, "close");
    if (write(x[0], buf, TESTLEN) <= 0)
	err(-3, "write");
    /* Should exit due to sigpipe above, or panic */
    return 0;
}
