Implement MSVC header search algorithm in MicrosoftMode.
Follows algorithm described here: http://msdn.microsoft.com/en-us/library/36k2cdd4.aspx
llvm-svn: 198082
diff --git a/clang/test/Preprocessor/microsoft-header-search.c b/clang/test/Preprocessor/microsoft-header-search.c
new file mode 100644
index 0000000..6c39b96
--- /dev/null
+++ b/clang/test/Preprocessor/microsoft-header-search.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -I%S/microsoft-header-search %s -fms-compatibility -verify
+
+// expected-warning@microsoft-header-search/a/findme.h:3 {{findme.h successfully included using MS search rules}}
+// expected-warning@microsoft-header-search/a/b/include3.h:3 {{#include resolved using non-portable MSVC search rules as}}
+
+#include "microsoft-header-search/include1.h"
\ No newline at end of file