brintos

brintos / llvm-project-archived public Read only

0
0
Text · 992 B · e97100a Raw
24 lines · c
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4//--- frameworks1/FW1.framework/Modules/module.modulemap5framework module FW1 { header "FW1.h" }6//--- frameworks1/FW1.framework/Headers/FW1.h7#import <FW2/FW2.h>8 9//--- frameworks2/FW2.framework/Modules/module.modulemap10framework module FW2 { header "FW2.h" }11//--- frameworks2/FW2.framework/Modules/module.private.modulemap12framework module FW2_Private { header "FW2_Private.h" }13//--- frameworks2/FW2.framework/Headers/FW2.h14//--- frameworks2/FW2.framework/PrivateHeaders/FW2_Private.h15 16//--- tu.c17#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 -verify24