aboutsummaryrefslogblamecommitdiff
path: root/test/Modules/dependency-dump-dependent-module.m
blob: df7f5326bb6cfcc21492e8a9274c635d68ec95f3 (plain) (tree)
1
2
3
4
5



                                                                             
                                                                                                                                                    
















                                                                       
// When a module depends on another, check that we dump the dependency header
// files for both.

// RUN: rm -rf %t
// 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
// expected-no-diagnostics

// RUN: FileCheck %s -check-prefix=VFS < %t/vfs/vfs.yaml
// VFS: 'name': "AlsoDependsOnModule.h"
// VFS: 'name': "SubFramework.h"
// VFS: 'name': "Treasure.h"
// VFS: 'name': "Module.h"
// VFS: 'name': "Sub.h"
// VFS: 'name': "Sub2.h"

@import AlsoDependsOnModule;

// FIXME: This fails on win32 due to ERROR_FILENAME_EXCED_RANGE
// if the working directory is too deep.
// We should make Win32/Path.inc capable of long pathnames with '\\?\'.
// For now, this is suppressed on win32.
// REQUIRES: shell