diff options
Diffstat (limited to 'test-O_DIRECTORY.c')
-rw-r--r-- | test-O_DIRECTORY.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test-O_DIRECTORY.c b/test-O_DIRECTORY.c new file mode 100644 index 00000000..e44d51ca --- /dev/null +++ b/test-O_DIRECTORY.c @@ -0,0 +1,7 @@ +#include <fcntl.h> + +int +main(void) +{ + return open(".", O_RDONLY | O_DIRECTORY) == -1; +} |