| Stephen Hines | 0e2c34f | 2015-03-23 12:09:02 -0700 | [diff] [blame] | 1 | // REQUIRES: shell | 
 | 2 | // | 
 | 3 | // RUN: cd %S | 
 | 4 | // RUN: rm -f %t.cpm %t-base.pcm %t-base.d %t.d | 
 | 5 | // RUN: %clang_cc1 -I. -x c++ -fmodule-maps -fmodule-name=test-base -fno-modules-implicit-maps -fmodules -emit-module -fno-validate-pch -fmodules-strict-decluse Inputs/dependency-gen-base.modulemap -dependency-file %t-base.d -MT %t-base.pcm -o %t-base.pcm -fmodule-map-file-home-is-cwd | 
 | 6 | // RUN: %clang_cc1 -I. -x c++ -fmodule-maps -fmodule-name=test -fno-modules-implicit-maps -fmodules -emit-module -fno-validate-pch -fmodules-strict-decluse -fmodule-file=%t-base.pcm %s -dependency-file %t.d -MT %t.pcm -o %t.pcm -fmodule-map-file-home-is-cwd | 
 | 7 | // RUN: FileCheck %s < %t.d | 
 | 8 | module "test" { | 
 | 9 |   export * | 
 | 10 |   header "Inputs/dependency-gen.h" | 
 | 11 |   use "test-base" | 
 | 12 |   use "test-base2" | 
 | 13 | } | 
 | 14 | extern module "test-base2" "Inputs/dependency-gen-base2.modulemap" | 
 | 15 | extern module "test-base" "Inputs/dependency-gen-base.modulemap" | 
 | 16 |  | 
 | 17 | // CHECK: {{ |\./}}Inputs/dependency-gen-included2.h | 
 | 18 | // CHECK: {{ |\./}}Inputs/dependency-gen-base.modulemap |