xref: /aosp_15_r20/external/clang/test/Modules/dependency-dump-dependent-module.m (revision 67e74705e28f6214e480b399dd47ea732279e315)
1*67e74705SXin Li// When a module depends on another, check that we dump the dependency header
2*67e74705SXin Li// files for both.
3*67e74705SXin Li
4*67e74705SXin Li// RUN: rm -rf %t
5*67e74705SXin Li// 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
6*67e74705SXin Li// expected-no-diagnostics
7*67e74705SXin Li
8*67e74705SXin Li// RUN: FileCheck %s -check-prefix=VFS < %t/vfs/vfs.yaml
9*67e74705SXin Li// VFS: 'name': "AlsoDependsOnModule.h"
10*67e74705SXin Li// VFS: 'name': "SubFramework.h"
11*67e74705SXin Li// VFS: 'name': "Treasure.h"
12*67e74705SXin Li// VFS: 'name': "Module.h"
13*67e74705SXin Li// VFS: 'name': "Sub.h"
14*67e74705SXin Li// VFS: 'name': "Sub2.h"
15*67e74705SXin Li
16*67e74705SXin Li@import AlsoDependsOnModule;
17*67e74705SXin Li
18*67e74705SXin Li// FIXME: This fails on win32 due to ERROR_FILENAME_EXCED_RANGE
19*67e74705SXin Li// if the working directory is too deep.
20*67e74705SXin Li// We should make Win32/Path.inc capable of long pathnames with '\\?\'.
21*67e74705SXin Li// For now, this is suppressed on win32.
22*67e74705SXin Li// REQUIRES: shell
23