Richard Smith | 223d3f2 | 2014-12-06 03:21:08 +0000 | [diff] [blame] | 1 | // REQUIRES: shell |
| 2 | // |
| 3 | // RUN: cd %S |
| 4 | // RUN: rm -rf %t |
| 5 | // RUN: mkdir %t |
| 6 | // RUN: %clang_cc1 -cc1 -fmodule-name=relative-dep-gen -emit-module -x c++ Inputs/relative-dep-gen.modulemap -dependency-file %t/build.d -MT mod.pcm -o %t/mod.pcm |
| 7 | // RUN: %clang_cc1 -cc1 -fmodule-map-file=Inputs/relative-dep-gen.modulemap -fmodule-file=%t/mod.pcm -dependency-file %t/use-explicit.d -MT use.o relative-dep-gen.cpp -fsyntax-only |
| 8 | // RUN: %clang_cc1 -cc1 -fmodule-map-file=Inputs/relative-dep-gen.modulemap -dependency-file %t/use-implicit.d relative-dep-gen.cpp -MT use.o -fsyntax-only |
| 9 | // |
| 10 | // RUN: FileCheck --check-prefix=CHECK-BUILD %s < %t/build.d |
| 11 | // RUN: FileCheck --check-prefix=CHECK-USE %s < %t/use-explicit.d |
| 12 | // RUN: FileCheck --check-prefix=CHECK-USE %s < %t/use-implicit.d |
Richard Smith | 223d3f2 | 2014-12-06 03:21:08 +0000 | [diff] [blame] | 13 | |
| 14 | #include "Inputs/relative-dep-gen-1.h" |
| 15 | |
| 16 | // CHECK-BUILD: mod.pcm: Inputs/relative-dep-gen-1.h Inputs/relative-dep-gen-2.h |
| 17 | // CHECK-USE: use.o: relative-dep-gen.cpp Inputs/relative-dep-gen-1.h |