| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: %clang_cc1 -fmodules -fimplicit-module-maps -fmodules-cache-path=%t -x objective-c %s -F %S/../Modules/Inputs -E -o - | FileCheck %s |
| 3 |
|
| 4 |
// CHECK: int bar(); |
| 5 |
int bar(); |
| 6 |
// CHECK: #pragma clang module import Module /* clang -E: implicit import for #include <Module/Module.h> */{{$}} |
| 7 |
#include <Module/Module.h> |
| 8 |
// CHECK: int foo(); |
| 9 |
int foo(); |
| 10 |
// CHECK: #pragma clang module import Module /* clang -E: implicit import for #include <Module/Module.h> */{{$}} |
| 11 |
#include <Module/Module.h> |
| 12 |
|
| 13 |
#include "pp-modules.h" // CHECK: # 1 "{{.*}}pp-modules.h" 1 |
| 14 |
// CHECK: #pragma clang module import Module /* clang -E: implicit import for #include <Module/Module.h> */{{$}} |
| 15 |
// CHECK: # 14 "{{.*}}pp-modules.c" 2 |