1// RUN: rm -rf %t 2// RUN: split-file %s %t 3 4//--- sources/FW/Private.h 5#include <FW/PrivateUnmapped.h> 6//--- sources/FW/PrivateUnmapped.h 7#include <FW/Public.h> 8//--- sources/FW/Public.h 9#include <FW/PublicPresent.h> 10//--- frameworks/FW.framework/Headers/PublicPresent.h 11// empty 12//--- frameworks/FW.framework/Modules/module.modulemap 13framework module FW { umbrella header "Public.h" } 14//--- frameworks/FW.framework/Modules/module.private.modulemap 15framework module FW_Private { umbrella header "Private.h" } 16//--- vfs.json.in 17{ 18 "case-sensitive": "false", 19 "version": 0, 20 "roots": [ 21 { 22 "contents": [ 23 { 24 "external-contents": "DIR/sources/FW/Public.h", 25 "name": "Public.h", 26 "type": "file" 27 } 28 ], 29 "name": "DIR/frameworks/FW.framework/Headers", 30 "type": "directory" 31 }, 32 { 33 "contents": [ 34 { 35 "external-contents": "DIR/sources/FW/Private.h", 36 "name": "Private.h", 37 "type": "file" 38 } 39 ], 40 "name": "DIR/frameworks/FW.framework/PrivateHeaders", 41 "type": "directory" 42 } 43 ] 44} 45 46//--- tu.m 47#import <FW/Private.h> 48// expected-no-diagnostics 49 50// RUN: sed -e "s|DIR|%/t|g" %t/vfs.json.in > %t/vfs.json 51 52// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache \ 53// RUN: -ivfsoverlay %t/vfs.json -I %t/sources -F %t/frameworks -fsyntax-only %t/tu.m -verify 54