28 lines · cpp
1// RUN: rm -rf %t && mkdir %t2// RUN: split-file %s %t3 4//--- frameworks/FW.framework/Modules/module.modulemap5framework module FW {6 umbrella header "FW.h"7 module * { export * }8}9 10//--- frameworks/FW.framework/Headers/FW.h11#include "One.h"12//--- frameworks/FW.framework/Headers/One.h13//--- frameworks/FW.framework/Headers/Two.h14 15//--- module.modulemap16module Mod { header "Mod.h" }17//--- Mod.h18#include "FW/Two.h"19//--- from_module.m20#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 %s25 26// CHECK: warning: missing submodule 'FW.Two'27 28