1 | // RUN: rm -rf %t-mcp |
2 | // RUN: mkdir -p %t-mcp |
3 | |
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 -fimplicit-module-maps -fmodules-cache-path=%t-mcp %s |
5 | // RUN: FileCheck %s < %t.d.1 |
6 | // CHECK: dependency-gen.m |
7 | // CHECK: Inputs{{.}}module.map |
8 | // CHECK: Inputs{{.}}diamond_top.h |
9 | // CHECK-NOT: usr{{.}}include{{.}}module.map |
10 | // CHECK-NOT: stdint.h |
11 | |
12 | |
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 -fimplicit-module-maps -fmodules-cache-path=%t-mcp %s |
14 | // RUN: FileCheck %s -check-prefix=CHECK-SYS < %t.d.2 |
15 | // CHECK-SYS: dependency-gen.m |
16 | // CHECK-SYS: Inputs{{.}}module.map |
17 | // CHECK-SYS: Inputs{{.}}diamond_top.h |
18 | // CHECK-SYS: usr{{.}}include{{.}}module.map |
19 | // CHECK-SYS: stdint.h |
20 | |
21 | #import "diamond_top.h" |
22 | #import "stdint.h" // inside sysroot |
23 | |