2 // RUN: split-file %s %t
4 //--- sources/FW/Private.h
5 #include <FW/PrivateUnmapped.h>
6 //--- sources/FW/PrivateUnmapped.h
8 //--- sources/FW/Public.h
9 #include <FW/PublicPresent.h>
10 //--- frameworks/FW.framework/Headers/PublicPresent.h
12 //--- frameworks/FW.framework/Modules/module.modulemap
13 framework module FW { umbrella header "Public.h" }
14 //--- frameworks/FW.framework/Modules/module.private.modulemap
15 framework module FW_Private { umbrella header "Private.h" }
18 "case-sensitive": "false",
24 "external-contents": "DIR/sources/FW/Public.h",
29 "name": "DIR/frameworks/FW.framework/Headers",
35 "external-contents": "DIR/sources/FW/Private.h",
40 "name": "DIR/frameworks/FW.framework/PrivateHeaders",
47 #import <FW/Private.h>
48 // expected-no-diagnostics
50 // RUN: sed -e "s|DIR|%/t|g" %t/vfs.json.in > %t/vfs.json
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