summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules/exclude-header.c
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-04-08 13:13:04 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-04-08 13:13:04 +0000
commit50996ce1e332334f3fa1913e90992e1128a5abaf (patch)
tree05724c939b1623aa1ee70e557f614aa269f44e93 /clang/test/Modules/exclude-header.c
parent139d4a3875a2a2d92b96f895498c99796fba9e95 (diff)
downloadbcm5719-llvm-50996ce1e332334f3fa1913e90992e1128a5abaf.tar.gz
bcm5719-llvm-50996ce1e332334f3fa1913e90992e1128a5abaf.zip
If a header is explicitly included in module A, and excluded from an umbrella
directory in module B, don't include it in module B! llvm-svn: 205762
Diffstat (limited to 'clang/test/Modules/exclude-header.c')
-rw-r--r--clang/test/Modules/exclude-header.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/clang/test/Modules/exclude-header.c b/clang/test/Modules/exclude-header.c
new file mode 100644
index 00000000000..4134c82483d
--- /dev/null
+++ b/clang/test/Modules/exclude-header.c
@@ -0,0 +1,11 @@
+// RUN: rm -rf %t
+// RUN: %clang_cc1 -x objective-c -fmodules -fmodules-cache-path=%t -I %S/Inputs/exclude-header %s -verify
+
+@import x;
+
+a var_a;
+b var_b1; // expected-error {{unknown type name 'b'}}
+
+@import y;
+
+b var_b2;
OpenPOWER on IntegriCloud