1*0a6a1f1dSLionel Sambuc// When a module depends on another, check that we dump the dependency header 2*0a6a1f1dSLionel Sambuc// files for both. 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 < %t/vfs/vfs.yaml 9*0a6a1f1dSLionel Sambuc// VFS: 'name': "AlsoDependsOnModule.h" 10*0a6a1f1dSLionel Sambuc// VFS: 'name': "SubFramework.h" 11*0a6a1f1dSLionel Sambuc// VFS: 'name': "Treasure.h" 12*0a6a1f1dSLionel Sambuc// VFS: 'name': "Module.h" 13*0a6a1f1dSLionel Sambuc// VFS: 'name': "Sub.h" 14*0a6a1f1dSLionel Sambuc// VFS: 'name': "Sub2.h" 15*0a6a1f1dSLionel Sambuc 16*0a6a1f1dSLionel Sambuc@import AlsoDependsOnModule; 17*0a6a1f1dSLionel Sambuc 18*0a6a1f1dSLionel Sambuc// FIXME: This fails on win32 due to ERROR_FILENAME_EXCED_RANGE 19*0a6a1f1dSLionel Sambuc// if the working directory is too deep. 20*0a6a1f1dSLionel Sambuc// We should make Win32/Path.inc capable of long pathnames with '\\?\'. 21*0a6a1f1dSLionel Sambuc// For now, this is suppressed on win32. 22*0a6a1f1dSLionel Sambuc// REQUIRES: shell 23