brintos

brintos / llvm-project-archived public Read only

0
0
Text · 616 B · 0d5c439 Raw
21 lines · plain
1// RUN: rm -rf %t2// RUN: split-file %s %t3 4// This test checks that redefinitions of frameworks are ignored.5 6//--- include/module.modulemap7module first { header "first.h" }8module FW {}9//--- include/first.h10 11//--- frameworks/FW.framework/Modules/module.modulemap12framework module FW { header "FW.h" }13//--- frameworks/FW.framework/Headers/FW.h14 15//--- tu.c16#import "first.h" // expected-remark {{importing module 'first'}}17#import <FW/FW.h>18 19// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fimplicit-module-maps \20// RUN:   -I %t/include -F %t/frameworks -fsyntax-only %t/tu.c -Rmodule-import -verify21