Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / include-header-missing-in-framework-with-headermap.c
blobda8d50cf915c9a9a401435b29ba71e8b04deb56c
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
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.
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}}
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