diff options
Diffstat (limited to 'test/Preprocessor/open-failure.c')
-rw-r--r-- | test/Preprocessor/open-failure.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Preprocessor/open-failure.c b/test/Preprocessor/open-failure.c new file mode 100644 index 0000000000..667b822168 --- /dev/null +++ b/test/Preprocessor/open-failure.c @@ -0,0 +1,11 @@ +// RUN: rm -rf %t.dir +// RUN: mkdir %t.dir +// RUN: echo 'void f0();' > %t.dir/t.h +// RUN: chmod 000 %t.dir/t.h +// RUN: clang-cc -verify -I %t.dir %s + +// FIXME: Is there a way to test this on Windows? +// XFAIL: win32 + +#include "t.h" // expected-error {{Permission denied}} +int f0(void); |