| 1 |
// RUN: rm -rf %t && mkdir %t |
| 2 |
// RUN: split-file %s %t |
| 3 |
|
| 4 |
//--- frameworks/FW.framework/Modules/module.modulemap |
| 5 |
framework module FW { |
| 6 |
umbrella header "FW.h" |
| 7 |
module * { export * } |
| 8 |
} |
| 9 |
|
| 10 |
//--- frameworks/FW.framework/Headers/FW.h |
| 11 |
#include "One.h" |
| 12 |
//--- frameworks/FW.framework/Headers/One.h |
| 13 |
//--- frameworks/FW.framework/Headers/Two.h |
| 14 |
|
| 15 |
//--- module.modulemap |
| 16 |
module Mod { header "Mod.h" } |
| 17 |
//--- Mod.h |
| 18 |
#include "FW/Two.h" |
| 19 |
//--- from_module.m |
| 20 |
#include "Mod.h" |
| 21 |
|
| 22 |
// RUN: %clang -fmodules -fmodules-cache-path=%t/cache \ |
| 23 |
// RUN: -iframework %t/frameworks -c %t/from_module.m -o %t/from_module.o \ |
| 24 |
// RUN: 2>&1 | FileCheck %s |
| 25 |
|
| 26 |
// CHECK: warning: missing submodule 'FW.Two' |
| 27 |
|