xref: /llvm-project/clang/test/Modules/exclude-header-fw-umbrella.m (revision 586547687946b27a99d3bb4241226f9f126a173e)
1// RUN: rm -rf %t
2// RUN: split-file %s %t
3
4//--- frameworks/A.framework/Modules/module.modulemap
5framework module A {
6  umbrella header "A.h"
7  exclude header "Excluded.h"
8
9  module Excluded {
10    header "Excluded.h"
11  }
12}
13//--- frameworks/A.framework/Headers/A.h
14#import <A/Sub.h>
15//--- frameworks/A.framework/Headers/Sub.h
16//--- frameworks/A.framework/Headers/Excluded.h
17#import <A/Sub.h>
18@interface I
19@end
20
21//--- tu.m
22#import <A/Excluded.h>
23
24// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -iframework %t/frameworks -fsyntax-only %t/tu.m -verify
25// expected-no-diagnostics
26