brintos

brintos / llvm-project-archived public Read only

0
0
Text · 934 B · da8d50c Raw
21 lines · c
1// RUN: rm -f %t.hmap2// RUN: %hmaptool write %S/Inputs/include-header-missing-in-framework/TestFramework.hmap.json %t.hmap3// RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -I %t.hmap -verify %s -DLATE_REMAPPING4// RUN: %clang_cc1 -fsyntax-only -I %t.hmap -F %S/Inputs -verify %s5 6// The test is similar to 'include-header-missing-in-framework.c' but covers7// the case when a header is remapped to a framework-like path with a .hmap8// file. And we can find the framework but not the header.9 10#ifdef LATE_REMAPPING11// 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#else17// Framework is found after remapping.18#include "RemappedHeader.h"19// expected-error@-1 {{'RemappedHeader.h' file not found}}20#endif // LATE_REMAPPING21