Changeset View
Changeset View
Standalone View
Standalone View
clang/test/Misc/dev-fd-fs.c
// Check that we can operate on files from /dev/fd. | // Check that we can operate on files from /dev/fd. | ||||
// REQUIRES: dev-fd-fs | // REQUIRES: dev-fd-fs | ||||
// REQUIRES: shell | // REQUIRES: shell | ||||
// Check reading from named pipes. We cat the input here instead of redirecting | // Check reading from named pipes. We cat the input here instead of redirecting | ||||
// it to ensure that /dev/fd/0 is a named pipe, not just a redirected file. | // it to ensure that /dev/fd/0 is a named pipe, not just a redirected file. | ||||
// | // | ||||
// RUN: cat %s | %clang -x c /dev/fd/0 -E > %t | // RUN: cat %s | %clang_bin -x c /dev/fd/0 -E > %t | ||||
// RUN: FileCheck --check-prefix DEV-FD-INPUT < %t %s | // RUN: FileCheck --check-prefix DEV-FD-INPUT < %t %s | ||||
// | // | ||||
// DEV-FD-INPUT: int x; | // DEV-FD-INPUT: int x; | ||||
// Check writing to /dev/fd named pipes. We use cat here as before to ensure we | // Check writing to /dev/fd named pipes. We use cat here as before to ensure we | ||||
// get a named pipe. | // get a named pipe. | ||||
// | // | ||||
Show All 14 Lines |