[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / Modules / no-check-relocated-fw-private-sub.c
blobb2864c40cff665e78b09633f72d1e1a5d07298d7
1 // RUN: rm -rf %t
2 // RUN: split-file %s %t
4 //--- frameworks1/FW1.framework/Modules/module.modulemap
5 framework module FW1 { header "FW1.h" }
6 //--- frameworks1/FW1.framework/Headers/FW1.h
7 #import <FW2/FW2.h>
9 //--- frameworks2/FW2.framework/Modules/module.modulemap
10 framework module FW2 { header "FW2.h" }
11 //--- frameworks2/FW2.framework/Modules/module.private.modulemap
12 framework module FW2.Private { header "FW2_Private.h" }
13 //--- frameworks2/FW2.framework/Headers/FW2.h
14 //--- frameworks2/FW2.framework/PrivateHeaders/FW2_Private.h
16 //--- tu.c
17 #import <FW1/FW1.h> // expected-remark{{importing module 'FW1'}} \
18 // expected-remark{{importing module 'FW2'}}
19 #import <FW2/FW2_Private.h> // expected-remark{{importing module 'FW2'}}
21 // RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fimplicit-module-maps \
22 // RUN: -F %t/frameworks1 -F %t/frameworks2 -fsyntax-only %t/tu.c \
23 // RUN: -fno-modules-check-relocated -Rmodule-import -verify