Clang Project

clang_source_code/test/Modules/dependency-dump.m
1// Check that we can dump all of the headers a module depends on, and a VFS map
2// for the same.
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 -input-file %t/vfs/vfs.yaml
11// VFS: 'name': "SubFramework.h"
12// VFS: 'name': "Treasure.h"
13// VFS: 'name': "Module.h"
14// VFS: 'name': "Sub.h"
15// VFS: 'name': "Sub2.h"
16
17@import Module;
18