Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 1 | // RUN: rm -rf %t-mcp |
| 2 | // RUN: mkdir -p %t-mcp |
| 3 | |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 4 | // RUN: %clang_cc1 -x objective-c -isystem %S/Inputs/System/usr/include -dependency-file %t.d.1 -MT %s.o -I %S/Inputs -fsyntax-only -fmodules -fmodules-cache-path=%t-mcp %s |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 5 | // RUN: FileCheck %s < %t.d.1 |
| 6 | // CHECK: dependency-gen.m |
| 7 | // CHECK: Inputs{{.}}diamond_top.h |
| 8 | // CHECK: Inputs{{.}}module.map |
| 9 | // CHECK-NOT: usr{{.}}include{{.}}module.map |
| 10 | // CHECK-NOT: stdint.h |
| 11 | |
| 12 | |
Stephen Hines | 176edba | 2014-12-01 14:53:08 -0800 | [diff] [blame] | 13 | // RUN: %clang_cc1 -x objective-c -isystem %S/Inputs/System/usr/include -dependency-file %t.d.2 -MT %s.o -I %S/Inputs -sys-header-deps -fsyntax-only -fmodules -fmodules-cache-path=%t-mcp %s |
Stephen Hines | 651f13c | 2014-04-23 16:59:28 -0700 | [diff] [blame] | 14 | // RUN: FileCheck %s -check-prefix=CHECK-SYS < %t.d.2 |
| 15 | // CHECK-SYS: dependency-gen.m |
| 16 | // CHECK-SYS: Inputs{{.}}diamond_top.h |
| 17 | // CHECK-SYS: Inputs{{.}}module.map |
| 18 | // CHECK-SYS: usr{{.}}include{{.}}module.map |
| 19 | // CHECK-SYS: stdint.h |
| 20 | |
| 21 | #import "diamond_top.h" |
| 22 | #import "stdint.h" // inside sysroot |