[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / missing-framework-header.cpp
blobb618451bd3214ade29a5daa8b5f996ad7e7a6054
1 // RUN: rm -rf %t && mkdir %t
2 // RUN: split-file %s %t
4 //--- frameworks/FW.framework/Modules/module.modulemap
5 framework module FW {
6 umbrella header "FW.h"
7 module * { export * }
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
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"
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
26 // CHECK: warning: missing submodule 'FW.Two'