brintos

brintos / llvm-project-archived public Read only

0
0
Text · 930 B · cb09326 Raw
19 lines · c
1// RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -verify %s2// RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -DTYPO_CORRECTION -verify %s3 4// After finding a requested framework, we don't look for the same framework in5// a different location even if requested header is not found in the framework.6// It can be confusing when there is a framework with required header later in7// header search paths. Mention in diagnostics where the header lookup stopped.8 9#ifndef TYPO_CORRECTION10#include <TestFramework/NotExistingHeader.h>11// expected-error@-1 {{'TestFramework/NotExistingHeader.h' file not found}}12// expected-note@-2 {{did not find header 'NotExistingHeader.h' in framework 'TestFramework' (loaded from}}13 14#else15// Don't emit extra note for unsuccessfully typo-corrected include.16#include <#TestFramework/NotExistingHeader.h>17// expected-error@-1 {{'#TestFramework/NotExistingHeader.h' file not found}}18#endif // TYPO_CORRECTION19