blob: d3d66bfaab2182085e5f46b75253d89796ff0b0a [file] [log] [blame]
Stephen Hines651f13c2014-04-23 16:59:28 -07001// RUN: rm -rf %t-mcp
2// RUN: mkdir -p %t-mcp
3
Stephen Hines176edba2014-12-01 14:53:08 -08004// 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 Hines651f13c2014-04-23 16:59:28 -07005// 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 Hines176edba2014-12-01 14:53:08 -080013// 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 Hines651f13c2014-04-23 16:59:28 -070014// 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