| 1 | // When a module depends on another, check that we dump the dependency header |
| 2 | // files for both. |
| 3 | |
| 4 | // REQUIRES: shell |
| 5 | |
| 6 | // RUN: rm -rf %t |
| 7 | // RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t/cache -module-dependency-dir %t/vfs -F %S/Inputs -I %S/Inputs -verify %s |
| 8 | // expected-no-diagnostics |
| 9 | |
| 10 | // RUN: FileCheck %s -check-prefix=VFS < %t/vfs/vfs.yaml |
| 11 | // VFS: 'name': "AlsoDependsOnModule.h" |
| 12 | // VFS: 'name': "SubFramework.h" |
| 13 | // VFS: 'name': "Treasure.h" |
| 14 | // VFS: 'name': "Module.h" |
| 15 | // VFS: 'name': "Sub.h" |
| 16 | // VFS: 'name': "Sub2.h" |
| 17 | |
| 18 | @import AlsoDependsOnModule; |
| 19 | |