| 1 |
// RUN: rm -rf %t |
| 2 |
// RUN: %clang_cc1 -fmodules -fmodules-strict-decluse -I%S/Inputs/preprocess-decluse \ |
| 3 |
// RUN: -fmodule-name=B -emit-module -o %t/b.pcm \ |
| 4 |
// RUN: -fmodule-map-file=%S/Inputs/preprocess-decluse/a.modulemap \ |
| 5 |
// RUN: -x c++-module-map %S/Inputs/preprocess-decluse/b.modulemap |
| 6 |
// RUN: %clang_cc1 -fmodules -fmodules-strict-decluse -I%S/Inputs/preprocess-decluse \ |
| 7 |
// RUN: -fmodule-map-file=%S/Inputs/preprocess-decluse/main.modulemap \ |
| 8 |
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=Main %s -verify |
| 9 |
// RUN: %clang_cc1 -fmodules -fmodules-strict-decluse -I%S/Inputs/preprocess-decluse \ |
| 10 |
// RUN: -fmodule-map-file=%S/Inputs/preprocess-decluse/main.modulemap \ |
| 11 |
// RUN: -fmodule-file=%t/b.pcm -fmodule-name=Main %s \ |
| 12 |
// RUN: -E -frewrite-imports -o %t/rewrite.ii |
| 13 |
// RUN: %clang_cc1 -fmodules -fmodules-strict-decluse -I%S/Inputs/preprocess-decluse \ |
| 14 |
// RUN: -fmodule-map-file=%S/Inputs/preprocess-decluse/main.modulemap \ |
| 15 |
// RUN: -fmodule-name=Main %t/rewrite.ii -verify |
| 16 |
|
| 17 |
// expected-no-diagnostics |
| 18 |
#include "b.h" |