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