Revert "[llvm] Improve llvm.objectsize computation by computing GEP, alloca and mallo...
[llvm-project.git] / clang / test / Preprocessor / include-header-missing-in-framework.c
blobcb09326a42806a41132b47be57286b7fd84c919d
1 // RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -verify %s
2 // RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -DTYPO_CORRECTION -verify %s
4 // After finding a requested framework, we don't look for the same framework in
5 // 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 in
7 // header search paths. Mention in diagnostics where the header lookup stopped.
9 #ifndef TYPO_CORRECTION
10 #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}}
14 #else
15 // 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_CORRECTION