| 1 |
// Check that mtime from a input file of a pcm is emitted, when it was built from an implicit module invocation. |
| 2 |
|
| 3 |
// RUN: rm -fr %t |
| 4 |
// RUN: split-file %s %t |
| 5 |
// RUN: %clang_cc1 -fmodules -fmodules-cache-path=%t/cache -fdisable-module-hash -fimplicit-module-maps %t/client.m -fsyntax-only -I%t/BuildDir |
| 6 |
// RUN: %clang_cc1 -module-file-info %t/cache/A.pcm | FileCheck %s |
| 7 |
|
| 8 |
// CHECK: Module name: A |
| 9 |
// CHECK: Module map file: {{.*}}module.modulemap |
| 10 |
// CHECK: Input file: {{.*}}A.h |
| 11 |
// CHECK-NEXT: MTime: {{[0-9]+}} |
| 12 |
|
| 13 |
|
| 14 |
//--- BuildDir/A/module.modulemap |
| 15 |
module A [system] { |
| 16 |
umbrella "." |
| 17 |
} |
| 18 |
|
| 19 |
//--- BuildDir/A/A.h |
| 20 |
typedef int local_t; |
| 21 |
|
| 22 |
//--- client.m |
| 23 |
#import <A/A.h> |