diff options
Diffstat (limited to 'test/Lexer/cross-windows-on-linux.cpp')
-rw-r--r-- | test/Lexer/cross-windows-on-linux.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/Lexer/cross-windows-on-linux.cpp b/test/Lexer/cross-windows-on-linux.cpp new file mode 100644 index 0000000..810e1d6 --- /dev/null +++ b/test/Lexer/cross-windows-on-linux.cpp @@ -0,0 +1,15 @@ +// RUN: not %clang_cc1 -fsyntax-only -triple i686-win32 %s 2>&1 | FileCheck %s + +#include "Inputs\success.h" + +// CHECK: error: 'Inputs\success.h' file not found +// CHECK: #include "Inputs\success.h" +// CHECK: ^ + +// expected to fail on windows as the inclusion would succeed and the +// compilation will fail due to the '#error success'. +// XFAIL: win32 + +// This test may or may not fail since 'Inputs\success.h' is passed +// to Win32 APIs on Windows. +// REQUIRES: disabled |