Richard Smith | f74d946 | 2017-04-28 01:49:42 +0000 | [diff] [blame] | 1 | // RUN: rm -rf %t |
| 2 | |
| 3 | // RUN: not %clang_cc1 -fmodules -fmodule-name=file -I%S/Inputs/preprocess -x c++-module-map %S/Inputs/preprocess/module.modulemap -E 2>&1 | FileCheck %s --check-prefix=MISSING-FWD |
| 4 | // MISSING-FWD: module 'fwd' is needed |
| 5 | |
| 6 | // RUN: %clang_cc1 -fmodules -fmodule-name=file -fmodules-cache-path=%t -I%S/Inputs/preprocess -x c++-module-map %S/Inputs/preprocess/module.modulemap -E | FileCheck %s |
| 7 | // CHECK: # 1 "<module-includes>" |
| 8 | // CHECK: # 1 "{{.*}}file.h" 1 |
| 9 | // CHECK: struct __FILE; |
| 10 | // CHECK: #include "fwd.h" /* clang -E: implicit import for module fwd */ |
| 11 | // CHECK: typedef struct __FILE FILE; |
| 12 | // CHECK: # 2 "<module-includes>" 2 |