252
|
1 // RUN: rm -rf %t
|
|
2 // RUN: split-file %s %t
|
|
3
|
|
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>
|
|
8
|
|
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
|
|
15
|
|
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_Private'}}
|
|
20
|
|
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
|