xref: /llvm-project/clang/test/Preprocessor/microsoft-header-search-fail.c (revision 5523fefb01c282c4cbcaf6314a9aaf658c6c145f)
159dadd17SJan Svoboda // RUN: rm -rf %t
259dadd17SJan Svoboda // RUN: split-file %s %t
359dadd17SJan Svoboda 
459dadd17SJan Svoboda // RUN: %clang_cc1 -Eonly -fms-compatibility %t/test.c -I %t/include -verify
559dadd17SJan Svoboda 
659dadd17SJan Svoboda //--- test.c
759dadd17SJan Svoboda #include "x/header.h"
859dadd17SJan Svoboda #include "z/header.h"
959dadd17SJan Svoboda 
10*5523fefbSJan Svoboda // expected-warning-re@include/y/header.h:1 {{#include resolved using non-portable Microsoft search rules as: {{.*}}x{{/|\\\\?}}culprit.h}}
1159dadd17SJan Svoboda // expected-error@include/z/header.h:1 {{'culprit.h' file not found}}
1259dadd17SJan Svoboda 
1359dadd17SJan Svoboda //--- include/x/header.h
1459dadd17SJan Svoboda #include "y/header.h"
1559dadd17SJan Svoboda 
1659dadd17SJan Svoboda //--- include/y/header.h
1759dadd17SJan Svoboda #include "culprit.h"
1859dadd17SJan Svoboda 
1959dadd17SJan Svoboda //--- include/x/culprit.h
2059dadd17SJan Svoboda 
2159dadd17SJan Svoboda //--- include/z/header.h
2259dadd17SJan Svoboda #include "culprit.h"
23