summaryrefslogtreecommitdiffstats
path: root/clang/test/Modules
diff options
context:
space:
mode:
authorBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-12-11 04:27:31 +0000
committerBruno Cardoso Lopes <bruno.cardoso@gmail.com>2016-12-11 04:27:31 +0000
commit66e9627b0242bdeef0cb0488167397f847c2e80d (patch)
tree18b0a401557e98652530f9ffb84e9b5749d69d2f /clang/test/Modules
parent181225b8a3134b2a78be3734a409645045106ecd (diff)
downloadbcm5719-llvm-66e9627b0242bdeef0cb0488167397f847c2e80d.tar.gz
bcm5719-llvm-66e9627b0242bdeef0cb0488167397f847c2e80d.zip
[CrashReproducer] Setup a module collector callback for HeaderInclude
Collect missing include that cannot be fetched otherwise (e.g. when using headermaps). rdar://problem/27913709 llvm-svn: 289361
Diffstat (limited to 'clang/test/Modules')
-rw-r--r--clang/test/Modules/crash-vfs-headermaps.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/test/Modules/crash-vfs-headermaps.m b/clang/test/Modules/crash-vfs-headermaps.m
index 208d9678b1e..4f88f3ba119 100644
--- a/clang/test/Modules/crash-vfs-headermaps.m
+++ b/clang/test/Modules/crash-vfs-headermaps.m
@@ -40,6 +40,13 @@
// CHECKYAML-NEXT: 'overlay-relative': 'true',
// CHECKYAML-NEXT: 'ignore-non-existent-contents': 'false'
// CHECKYAML: 'type': 'directory'
+// CHECKYAML: 'name': "/[[PATH:.*]]/Foo.framework/Headers",
+// CHECKYAML-NEXT: 'contents': [
+// CHECKYAML-NEXT: {
+// CHECKYAML-NEXT: 'type': 'file',
+// CHECKYAML-NEXT: 'name': "Foo.h",
+// CHECKYAML-NEXT: 'external-contents': "/[[PATH]]/Foo.framework/Headers/Foo.h"
+// CHECKYAML: 'type': 'directory'
// CHECKYAML: 'name': "/[[PATH:.*]]/i",
// CHECKYAML-NEXT: 'contents': [
// CHECKYAML-NEXT: {
OpenPOWER on IntegriCloud