xref: /minix3/external/bsd/llvm/dist/clang/test/Modules/dependency-dump.m (revision 0a6a1f1d05b60e214de2f05a7310ddd1f0e590e7)
1*0a6a1f1dSLionel Sambuc// Check that we can dump all of the headers a module depends on, and a VFS map
2*0a6a1f1dSLionel Sambuc// for the same.
3*0a6a1f1dSLionel Sambuc
4*0a6a1f1dSLionel Sambuc// RUN: rm -rf %t
5*0a6a1f1dSLionel Sambuc// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/Inputs -verify %s
6*0a6a1f1dSLionel Sambuc// expected-no-diagnostics
7*0a6a1f1dSLionel Sambuc
8*0a6a1f1dSLionel Sambuc// RUN: FileCheck %s -check-prefix=VFS -input-file %t/vfs/vfs.yaml
9*0a6a1f1dSLionel Sambuc// VFS: 'name': "SubFramework.h"
10*0a6a1f1dSLionel Sambuc// VFS: 'name': "Treasure.h"
11*0a6a1f1dSLionel Sambuc// VFS: 'name': "Module.h"
12*0a6a1f1dSLionel Sambuc// VFS: 'name': "Sub.h"
13*0a6a1f1dSLionel Sambuc// VFS: 'name': "Sub2.h"
14*0a6a1f1dSLionel Sambuc
15*0a6a1f1dSLionel Sambuc@import Module;
16