1 // RUN: rm -f %t.hmap 2 // RUN: %hmaptool write %S/Inputs/include-header-missing-in-framework/TestFramework.hmap.json %t.hmap 3 // RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -I %t.hmap -verify %s -DLATE_REMAPPING 4 // RUN: %clang_cc1 -fsyntax-only -I %t.hmap -F %S/Inputs -verify %s 5 6 // The test is similar to 'include-header-missing-in-framework.c' but covers 7 // the case when a header is remapped to a framework-like path with a .hmap 8 // file. And we can find the framework but not the header. 9 10 #ifdef LATE_REMAPPING 11 // Framework is found before remapping. 12 #include <TestFramework/BeforeRemapping.h> 13 // expected-error@-1 {{'TestFramework/BeforeRemapping.h' file not found}} 14 // expected-note@-2 {{did not find header 'BeforeRemapping.h' in framework 'TestFramework' (loaded from}} 15 16 #else 17 // Framework is found after remapping. 18 #include "RemappedHeader.h" 19 // expected-error@-1 {{'RemappedHeader.h' file not found}} 20 #endif // LATE_REMAPPING 21